Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.12.1-preview-822" />

 IDependencyResolver

Represents a dependency resolver.
object Activate(Type type, ResolutionBehavior resolutionBehavior, 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, ResolutionBehavior resolutionBehavior = 3)

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

bool CanResolve(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3)

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 name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)

Resolves a named instance from the container with dependency overrides.

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

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

Delegate ResolveFactoryOrDefault(Type typeFrom, object name = null, ResolutionBehavior resolutionBehavior = 3, 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 name, object[] dependencyOverrides, ResolutionBehavior resolutionBehavior = 3)

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