Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="2.9.0-preview-522" />

 IDependencyRegistrator

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

Registers a type into the container with custom configuration.

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

Registers a type into the container with custom configuration.

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

Registers a type into the container with custom configuration.

Registers a type into the container with custom configuration.

Registers a type into the container with custom configuration.

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

Registers an already constructed instance into the container.

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

Registers an already constructed instance into the container.

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

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

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

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