How to register a service with multiple interfaces in ASP.NET Core DI

added by DotNetKicks
9/18/2018 10:29:20 AM

2 Kicks, 106 Views

In this post I describe how to register a concrete class with multiple public interfaces in the Microsoft.Extensions.DependencyInjection container used in ASP.NET Core. With this approach you'll be able to retrieve the concrete class using any of the interfaces it implements.


0 comments