419 Commits

Author SHA1 Message Date
David Fowler
508fa593d7
Added implict usings (#2125) 2023-06-15 05:25:36 -07:00
David Fowler
3b9560c26e
Clean up usings and controller attributes (#2124)
* Clean up usings and controller attributes
- Removed redundant attributes when the controllers already specifies what the result type is.
- Use StatusCodes instead of HttpStatusCode.
- Clean up namespaces and use type aliases to disambiguate the many DTOs defined.

* Forgot one

* Update src/Services/Webhooks/Webhooks.API/Controllers/WebhooksController.cs

Co-authored-by: Reuben Bond <203839+ReubenBond@users.noreply.github.com>

---------

Co-authored-by: Reuben Bond <203839+ReubenBond@users.noreply.github.com>
2023-06-14 20:56:52 -07:00
Eric Erhardt
5d13c097d3 Address PR feedback 2023-06-13 14:41:55 -05:00
Eric Erhardt
fd76f390ef Cache JsonSerializerOptions
According to https://github.com/dotnet/runtime/issues/65396, using a new JsonSerializerOptions every time JsonSerializer is invoked is a suboptimal pattern.

Fix this by caching JsonSerializerOptions instances.
2023-06-13 11:31:11 -05:00
Reuben Bond
3858d7ccf7 Fix integration tests 2023-05-09 07:05:39 -07:00
David Fowler
d5533c0ff9 Move the pic controller to a minimal API 2023-05-09 07:05:39 -07:00
David Fowler
5a2d38575e Fixed identity url 2023-05-09 07:05:38 -07:00
David Fowler
670a9452e1 Remove health check 2023-05-09 07:05:38 -07:00
David Fowler
69b28c6add Added gRPC and HTTP endpoints via config 2023-05-09 07:05:38 -07:00
David Fowler
6b8992153a Rename extensions to extensions 2023-05-09 07:05:38 -07:00
David Fowler
d086d278e8 Moved repository to top level folder 2023-05-09 07:05:38 -07:00
David Fowler
3c00be38f9 Make BFF work and clean up ports 2023-05-09 07:05:37 -07:00
David Fowler
5ea034106c Move extensions to Extensions folder 2023-05-09 07:05:37 -07:00
Reuben Bond
bcb1374d1e Avoid logging exception details twice in a given log, clean up 2023-05-09 07:05:37 -07:00
David Fowler
c41cd3830c Updated background tasks to use common service logic 2023-05-09 07:05:37 -07:00
David Fowler
a41560544c Split redis and health checks for redis 2023-05-09 07:05:37 -07:00
Reuben Bond
cf02e90aad Migrate from ILoggerFactory to ILogger<T> and use Logging Source Generator 2023-05-09 07:05:37 -07:00
David Fowler
5397e8d5c8 Made small tweak to startup 2023-05-09 07:05:36 -07:00
David Fowler
34fc9496fd Small clean up to error handling code 2023-05-09 07:05:36 -07:00
David Fowler
a381a6923c Removed filters and special errors handling from MVC 2023-05-09 07:05:36 -07:00
David Fowler
3056418c92 Made a health check api 2023-05-09 07:05:36 -07:00
Reuben Bond
16b63001df Add Identity sections to config and consume (likely broken). Simplify integration tests 2023-05-09 07:05:36 -07:00
Reuben Bond
83200f9331 Fix Dockerfiles to include Services.Common 2023-05-09 07:05:36 -07:00
Reuben Bond
fea08c78bb Finish removing Autofac 2023-05-09 07:05:36 -07:00
Reuben Bond
8da0a81514 Remove Serilog usage 2023-05-09 07:05:35 -07:00
Reuben Bond
3f5f0b94ed Remove Program from Catalog.API 2023-05-09 07:05:35 -07:00
David Fowler
d96e4db08c Remove Program 2023-05-09 07:05:35 -07:00
David Fowler
c59e66861f - Add redis health check
- Add health checks on startup
2023-05-09 07:05:35 -07:00
David Fowler
56d47db91e Read from the connection strings section 2023-05-09 07:05:35 -07:00
David Fowler
b48ba7b74b More clean up 2023-05-09 07:05:35 -07:00
David Fowler
41056e54d8 Update grpc reference 2023-05-09 07:05:35 -07:00
David Fowler
45a04e4a6d Make services run individually and outside of docker
- Removed manual port binding code
- Disable Seq and logstash if config is null
- Disable serilog for now
- Remove IIS from some launch profiles
- Clean up some logging.
2023-05-09 07:05:35 -07:00
David Fowler
bff808016e Remove the UseVault and use the existance of the section 2023-05-09 07:05:35 -07:00
David Fowler
48f640088b More clean up 2023-05-09 07:05:35 -07:00
David Fowler
794c546d2e Fix the catalog tests 2023-05-09 07:05:35 -07:00
David Fowler
7da7e98a55 Configure so tests work again 2023-05-09 07:05:34 -07:00
David Fowler
9d52426a49 Use default logger 2023-05-09 07:05:34 -07:00
David Fowler
8a40e9fb48 More schema 2023-05-09 07:05:34 -07:00
David Fowler
3fee612e68 More tweaks 2023-05-09 07:05:34 -07:00
David Fowler
00fc3d8a65 More defaults 2023-05-09 07:05:34 -07:00
David Fowler
9af6d6342d Initial attempt at making a common service configuration 2023-05-09 07:05:34 -07:00
David Fowler
c7edd50b38 Fix ordering and basked scenarios 2023-05-09 07:05:34 -07:00
David Fowler
d4c2f17c36 Remove whitespace 2023-05-09 07:05:34 -07:00
David Fowler
746e5da7fa Make more tests pass 2023-05-09 07:05:34 -07:00
David Fowler
f3d2843166 Make tests work 2023-05-09 07:05:34 -07:00
Reuben Bond
91247ec52e BAD MISC - playing with tests 2023-05-09 07:05:34 -07:00
Reuben Bond
d62ebcb791 Fix IncludeScopes 2023-05-09 07:05:34 -07:00
Reuben Bond
451d79f7b9 Fix formatting 2023-05-04 06:48:37 -07:00
Rik van Haaren
ff78bb7577
Fix spelling 2023-04-18 15:49:56 +02:00
Tarun Jain
bb4307478c Fix formatting 2023-03-28 22:10:42 +05:30