DependencyResolverExtensions
Represents the extensions of the IDependencyResolver.
On the fly activates an object without registering it into the container. If you want to resolve a
registered service use the Resolve instead.
public static IDependencyResolver PutInstanceInScope<TFrom>(this IDependencyResolver resolver, TFrom instance, bool withoutDisposalTracking = false, object name = null)
Puts an instance into the scope which will be dropped when the scope is being disposed.
public static TKey Resolve<TKey>(this IDependencyResolver resolver, bool nullResultAllowed = false, object[] dependencyOverrides = null)
Resolves an instance from the container.
public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, bool nullResultAllowed = false, object[] dependencyOverrides = null)
Resolves an instance from the container.
public static Func<TService> ResolveFactory<TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
Returns a factory method which can be used to activate a type.
public static Func<T1, TService> ResolveFactory<T1, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
Returns a factory method which can be used to activate a type.
public static Func<T1, T2, TService> ResolveFactory<T1, T2, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
Returns a factory method which can be used to activate a type.
public static Func<T1, T2, T3, TService> ResolveFactory<T1, T2, T3, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
Returns a factory method which can be used to activate a type.
public static Func<T1, T2, T3, T4, TService> ResolveFactory<T1, T2, T3, T4, TService>(this IDependencyResolver resolver, object name = null, bool nullResultAllowed = false)
Returns a factory method which can be used to activate a type.