vendredi 18 novembre 2016

Factory Pattern needed when using Dependency Injection?

I'm new to design patterns in .NET C# used with .NET core. I wonder if the factory pattern should be used in smaller .NET core applications when dependency Injection is built in?

I'm sure I missed the difference between both, but when coding it felt much easier to get everything from a service container (instances, scopes, singleton) then writing a Factory on my own.

thanks

Aucun commentaire:

Enregistrer un commentaire