all InfoSec news
Keyed Services in .NET8's Dependency Injection
Aug. 1, 2023, 9:29 p.m. | Xavier Abelaira Rueda (Xelit3)
DEV Community dev.to
📃 Introduction
Since the beginning, AspNetCore provided a simple but effective dependency injection container by default, without the need of configuring it manually.
This amazing built-in implementation has worked like a charm in most of the common scenarios. However, not everything was covered as easy as pie by default.
As a counterexample, if we needed to deal with more than one implementation pointing to the same interface, we needed some kind of workaround to overcome this challenge.
⏪ Previous context …
container csharp default dependency dotnet implementation injection introduction services simple
More from dev.to / DEV Community
Jobs in InfoSec / Cybersecurity
CyberSOC Technical Lead
@ Integrity360 | Sandyford, Dublin, Ireland
Cyber Security Strategy Consultant
@ Capco | New York City
Cyber Security Senior Consultant
@ Capco | Chicago, IL
Sr. Product Manager
@ MixMode | Remote, US
Corporate Intern - Information Security (Year Round)
@ Associated Bank | US WI Remote
Senior Offensive Security Engineer
@ CoStar Group | US-DC Washington, DC