Stashbox by Peter Csajtai

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

 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.

Returns all cached service resolution delegates.

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)

Resolves an instance from the container.

object Resolve(Type typeFrom, object[] dependencyOverrides)

Resolves an instance from the container with dependency overrides.

object Resolve(Type typeFrom, object name)

Resolves a named instance from the container.

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

Resolves a named instance from the container with dependency overrides.

IEnumerable<TKey> ResolveAll<TKey>()

Resolves all registered implementations of a service.

IEnumerable<TKey> ResolveAll<TKey>(object name)

Resolves all registered implementations of a service identified by a name.

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

Resolves all registered implementations of a service with dependency overrides.

IEnumerable<TKey> ResolveAll<TKey>(object name, object[] dependencyOverrides)

Resolves all registered implementations of a service identified by a name and with dependency overrides.

IEnumerable<object> ResolveAll(Type typeFrom)

Resolves all registered implementations of a service.

IEnumerable<object> ResolveAll(Type typeFrom, object name)

Resolves all registered implementations of a service.

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

Resolves all registered implementations of a service with dependency overrides.

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

Resolves all registered implementations of a service with dependency overrides.

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)

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

object ResolveOrDefault(Type typeFrom, object[] dependencyOverrides)

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

object ResolveOrDefault(Type typeFrom, object name)

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

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

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