This project contains an example of using an extension method to group multiple related service registrations. The method .AddMyComponent will register the implementations of two interfaces: IProductManager and IBasketManager.
andreac-msft / groupdiregistrationsinnetcore Goto Github PK
View Code? Open in Web Editor NEWExample of grouping DI registrations in ASP.NET Core