Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.4.0-preview-755" />

 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 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, object[] dependencyOverrides)

Resolves an instance from the container with dependency overrides.

public static TKey Resolve<TKey>(this IDependencyResolver resolver, object name)

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.

public static TKey ResolveOrDefault<TKey>(this IDependencyResolver resolver, object name)

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.

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, object[] dependencyOverrides)

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