Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.8.2-preview-795" />

 IDependencyRegistrator

public interface IDependencyRegistrator
Represents a dependency registrator.
IStashboxContainer Register<TFrom, TTo>(Action<RegistrationConfigurator<TFrom, TTo>> configurator) where TTo : TFrom

Registers a service into the container.

IStashboxContainer Register<TFrom, TTo>(object name = null) where TTo : TFrom

Registers a service into the container with a name.

IStashboxContainer Register<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null)

Registers a service into the container.

IStashboxContainer Register(Type typeFrom, Type typeTo, Action<RegistrationConfigurator> configurator = null)

Registers a service into the container.

Registers a service into the container.

IStashboxContainer Register<TTo>(object name = null)

Registers a service into the container.

Registers a service into the container.

IStashboxContainer RegisterInstance<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)

Registers an already constructed instance into the container.

IStashboxContainer RegisterInstance(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)

Registers an already constructed instance into the container.

IStashboxContainer RegisterScoped<TFrom, TTo>(object name = null) where TTo : TFrom

Registers a named service with scoped lifetime.

IStashboxContainer RegisterScoped(Type typeFrom, Type typeTo, object name = null)

Registers a named service with scoped lifetime.

IStashboxContainer RegisterScoped<TTo>(object name = null)

Registers a named service with scoped lifetime.

IStashboxContainer RegisterSingleton<TFrom, TTo>(object name = null) where TTo : TFrom

Registers a named service with singleton lifetime.

IStashboxContainer RegisterSingleton<TTo>(object name = null)

Registers a named service with singleton lifetime.

IStashboxContainer RegisterSingleton(Type typeFrom, Type typeTo, object name = null)

Registers a named service with singleton lifetime.

IStashboxContainer WireUp<TInstance>(TInstance instance, object name = null, bool withoutDisposalTracking = false, Action<TInstance> finalizerDelegate = null)

Registers an already constructed instance, but the container will perform injections and extensions on it.

IStashboxContainer WireUp(object instance, Type serviceType, object name = null, bool withoutDisposalTracking = false)

Registers an already constructed instance, but the container will perform injections and extensions on it.