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 void 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.
Resolves an instance from the container.
Resolves an instance from the container with dependency overrides.
Resolves a named instance from the container.
public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides)
Resolves a named instance from the container with dependency overrides.
Resolves a named instance from the container or returns default if the type is not resolvable.
public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides)
Resolves a named instance from the container with dependency overrides or returns default if the type is not resolvable.
Resolves an instance from the container or returns default if the type is not resolvable.
public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides)
Resolves an instance from the container with dependency overrides or returns default if the type is not resolvable.