dazinator / Dotnettency

Mutlitenancy for dotnet applications
MIT License
111 stars 23 forks source link

Extension method for getting IWebHostEnvironment #64

Closed dazinator closed 4 years ago

dazinator commented 4 years ago

Create a package that provides a GetEnvironment() extension method for TenantShellItemBuilderContext<TTenant> to ease configuration in various places

Under the scenes it could do something like this (as the builder has access to the current IServiceProvider:

return context.Services.GetRequiredService<IWebHostingEnvironment>();
dazinator commented 4 years ago

Dont need this