Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.2.0-preview-739" />

 IDependencyResolver

Represents a dependency resolver.
object Activate(Type type, object[] arguments)

Activates an object without registering it into the container. If you want to resolve a registered service use the Resolve method instead.

IDependencyResolver BeginScope(object name = null, bool attachToParent = false)

Creates a new scope.

TTo BuildUp<TTo>(TTo instance)

Builds up an existing instance. This means the container performs member and method injections on it without registering it into the container.

bool CanResolve<TFrom>(object name = null)

Checks whether a type can be resolved by the container, or not.

bool CanResolve(Type typeFrom, object name = null)

Checks whether a type can be resolved by the container, or not.

Calls the registered asynchronous initializers of all resolved objects.

void PutInstanceInScope(Type typeFrom, object instance, bool withoutDisposalTracking = false, object name = null)

Puts an instance into the scope. The instance will be disposed along with the scope disposal.

object Resolve(Type typeFrom, bool nullResultAllowed, object[] dependencyOverrides = null)

Resolves an instance from the container.

object Resolve(Type typeFrom, object name, bool nullResultAllowed, object[] dependencyOverrides = null)

Resolves an instance from the container.

object Resolve(Type typeFrom, object[] dependencyOverrides = null)

Resolves an instance from the container.

object Resolve(Type typeFrom, object name, object[] dependencyOverrides = null)

Resolves an instance from the container.

IEnumerable<TKey> ResolveAll<TKey>(object[] dependencyOverrides = null)

Resolves all registered types of a service.

IEnumerable<object> ResolveAll(Type typeFrom, object[] dependencyOverrides = null)

Resolves all registered types of a service.

Delegate ResolveFactory(Type typeFrom, object name = null, Type[] parameterTypes)

Returns a factory delegate that can be used to activate the service.

Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, Type[] parameterTypes)

Returns a factory delegate that can be used to activate the service or returns default if the type is not resolvable.

object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides = null)

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

object ResolveOrDefault(Type typeFrom, object name, object[] dependencyOverrides = null)

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