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
Principal - Cyber Risk and Assurance - Infra/Network
@ GSK | Bengaluru Luxor North Tower
Staff Security Engineer
@ Airwallex | AU - Melbourne
Chief Information Security Officer
@ Australian Payments Plus | Sydney, New South Wales, Australia
TW Test Automation Engineer (Access Control & Intrusion Systems)
@ Bosch Group | Taipei, Taiwan
Consultant infrastructure sécurité H/F
@ Hifield | Sèvres, France
SOC Analyst
@ Wix | Tel Aviv, Israel