microsoft-dependency-injection icon indicating copy to clipboard operation
microsoft-dependency-injection copied to clipboard

Unity.Microsoft.DependencyInjection package

Results 19 microsoft-dependency-injection issues
Sort by recently updated
recently updated
newest added

The older Unity.Mvc library (for .NET Framework) had a PerRequestLifetimeManager that created object instances with the lifetime of one http request. Unity.Mvc does not run in Asp.Net Core sites. Does...

Question :grey_question:

Hi, i am trying to implement this suggestion ["Do not capture services injected into the controllers on background"](https://docs.microsoft.com/en-us/aspnet/core/performance/performance-best-practices?view=aspnetcore-3.1#do-not-capture-services-injected-into-the-controllers-on-background-threads) from microsoft docs. It works with default dependecy injection mechanism, but when...

Requires Investigation :cop:

Hello, I have a situation where I need to be able to use a `IHttpClientFactory` that has been configured globally (in the root container) in my application, and additional factories...

Bug :bug:

Hi, When I use `unityContainer.Resolve();` on the main container it resolve it and return a value but if I use the following code and resolve `IWebHostEnvironment` from child container it...

Question :grey_question:

The extension type Microsoft.Practices.Unity.InterceptionExtension.Configuration.InterceptionConfigurationExtension, Microsoft.Practices.Unity.Interception.Configuration does not derive from SectionExtension. (web.config line 193)

Hello, while working with asp.net core i witnessed a situation where the class: [ServiceProviderFactory.cs](https://github.com/unitycontainer/microsoft-dependency-injection/blob/master/src/ServiceProvider/ServiceProviderFactory.cs) uses direct cast to UnityContainer thus making it unusable when someone needs to create a specific...

Enhancement :hammer:

Modified access modifier to `public` so that library users can use `AddServices` method. In addition, since the access modifier of `MdiExtension` is `internal`, it is modified to add if `MdiExtension`...

A quick fix to add support for Keyed services introduced in .NET 8

Updates to VS/dotnet have broken some codebases that use Unity as the IoC container[1][2] due to the `IServiceProviderIsService` interface not being registered. Feels like it would make sense for this...