Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.10.1" />

 DependencyResolverExtensions

public static class DependencyResolverExtensions
Represents the extensions of the IDependencyResolver.
public static TTo Activate<TTo>(this IDependencyResolver resolver, object[] arguments)

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 TTo Activate<TTo>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior, object[] arguments)

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.

public static TKey Resolve<TKey>(this IDependencyResolver resolver)

Resolves an instance from the container.

public static TKey Resolve<TKey>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior)

Resolves an instance from the container.

public static TKey Resolve<TKey>(this IDependencyResolver resolver, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)

Resolves an instance from the container with dependency overrides.

public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, ResolutionBehavior resolutionBehavior = 3)

Resolves a named instance from the container.

public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)

Resolves a named instance from the container with dependency overrides.

public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name, ResolutionBehavior resolutionBehavior = 3)

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, ResolutionBehavior resolutionBehavior = 3)

Resolves a named instance from the container with dependency overrides or returns default if the type is not resolvable.

public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver)

Resolves an instance from the container or returns default if the type is not resolvable.

public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, ResolutionBehavior resolutionBehavior)

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, ResolutionBehavior resolutionBehavior = 3)

Resolves an instance from the container with dependency overrides or returns default if the type is not resolvable.