πŸ”₯ Pragmatic .NET Code Rules Course is on Presale - 40% off!BUY NOW
Chapter 9 of 10

Factory Patterns: Factory Method to Keyed DI

Factory Method, Abstract Factory, and the way you actually create polymorphic objects in .NET today - keyed DI, factory delegates, ActivatorUtilities, and the framework's own IHttpClientFactory - plus the captive-dependency trap and when the container makes a hand-written factory pointless.

20 min read Β· Paid chapter

Checking your access…