aspnet / DependencyInjection

[Archived] Contains common DI abstractions that ASP.NET Core and Entity Framework Core use. Project moved to https://github.com/aspnet/Extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a way to pass in context from hosting to the ServiceCollection being used when configuring services

javiercn opened this issue · comments

This can be done through an additional interface implemented by service collection (IServiceConfigurationContext) that just defines an IDictionary<object,object>.

Libraries can downcast IServiceCollection to that interface and get or set context from hosting or from other libraries that have been configured before.

This issue was moved to dotnet/aspnetcore#2340