microsoft-dependency-injection
microsoft-dependency-injection copied to clipboard
Unity.Microsoft.DependencyInjection package
Greetings! This issue has been raised in a project I work on: https://github.com/open-telemetry/opentelemetry-dotnet/issues/5537 Seems there is a behavior difference between how Unity handles the `IServiceProvider.GetServices` extension vs how Microsoft.Extensions.DependencyInjection does...
I've migrated from .NET Core 3.1 to .NET6.0 WebAPI using the guidelines provided by Microsoft. I'm using UnityContainer as DependencyInjection framework. I observe that the Unity dependencies are loaded in...
## How to reproduce Use standard ASP.NET Core application (I'm tried on `netcoreapp2.1`, `netcoreapp2.2` and `netcoreapp3.0`) ```C# using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Unity; using Unity.Microsoft.DependencyInjection; namespace WebApplication1 { public class...
We have an existing ASP.NET (not Core) app which is using Unity container for DI. However we would like to add some new Microsoft services such as health checks which...
We get the following runtime error on startup if we specify PerRequestLifetimeManager when registering types using Unity-MVC 5.11.1 (note: we do not have a direct reference to System.Web in our...
We are currently using Unity in some of our projects and want to use it with asp.net core. To enable this feature we use the "Unity.Microsoft.DependencyInjection - 2.1.1". We also...
I am using this library to configure services on `IServiceCollection` and then transfer registrations to `IUnityContainer` by using `.BuildServiceProvider(IUnityContainer ...)` extension method. Currently I am trying to use it on...
Hi, I need your help to understand if the following behavior is the expected one or if there is a trick to make it work. It seems that when there...
Scenario: Root container with two child containers (siblings). A scoped service is added to one of the child containers. The service should only be resolvable from the child container in...
I'm adding a test for https://github.com/dotnet/runtime/pull/47722. In doing so, I created a Struct type that has a default constructor (note you can only do this in IL today, until https://github.com/dotnet/csharplang/issues/99...