Hi I am converting my code from unity to Mirosoft.DependencyInjection
and I am facing some errors
what is the alternate for UnityContainerExtension in Mirosoft.DependencyInjection as it is used in unity
alternate for :-
_container.RegisterType<TInterface, TImplementation>(name, lifetimeManager);
_container.RegisterLoggedType<TInterface, TImplementation>(name, lifetimeManager);
var childContainer = _container.CreateChildContainer();
var locator = new MinimalServiceLocator(childContainer);
public void RegisterInstance<T>(T instance)
{
_container.RegisterInstance<T>(instance);
}
NOTE : I HAVE THESE DEPENDENCIES
private readonly IServiceProvider _serviceProvider;
private readonly IServiceCollection _services;
I have used params object[] injectionMembers instead of params InjectionMember[] injectionMembers is it correct .
and I am facing some errors
what is the alternate for UnityContainerExtension in Mirosoft.DependencyInjection as it is used in unity
alternate for :-
_container.RegisterType<TInterface, TImplementation>(name, lifetimeManager);
_container.RegisterLoggedType<TInterface, TImplementation>(name, lifetimeManager);
var childContainer = _container.CreateChildContainer();
var locator = new MinimalServiceLocator(childContainer);
public void RegisterInstance<T>(T instance)
{
_container.RegisterInstance<T>(instance);
}
NOTE : I HAVE THESE DEPENDENCIES
private readonly IServiceProvider _serviceProvider;
private readonly IServiceCollection _services;
I have used params object[] injectionMembers instead of params InjectionMember[] injectionMembers is it correct .