Mile
Managing Scoped Service Lifecycles with a Singleton Factory in .NET: Best Practices?
My question is:
How can I ensure that the scope is properly disposed of after using the service in the Handle method?
Is there a better way to implement this pattern that would better respect the Scoped lifecycle of the services?
Any insights or best practices would be greatly appreciated.
66 replies
Payments - architectural dilemma
However I'm still not sure should I use strategy pattern, dependency injection or factory pattern for this, any additional suggestions? Additionaly, where do I store sensitive configuration information for each payment provider?
7 replies