Minor structural changes that favour dependency injection over static method calls.
This mainly impacts:
Configuration, e.g. how we get connection strings from configuration files - configuration is injected in the class constructor rather than obtained using a builder pattern. Smaller code footprint and reusable convention.
The Broker - the broker is now instantiated as a scoped service in Startup.cs line 34 and injected into class constructors as required.
Nothing is functionally changed but it's a decent approach. At some stage we might consider moving the broker to a separate project and injecting it via an interface (making it easier to add an API etc.)
Minor structural changes that favour dependency injection over static method calls.
This mainly impacts:
Nothing is functionally changed but it's a decent approach. At some stage we might consider moving the broker to a separate project and injecting it via an interface (making it easier to add an API etc.)