Stashbox by Peter Csajtai

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

 DependencyRegistratorExtensions

public static class DependencyRegistratorExtensions
Represents the extension methods of IDependencyRegistrator.
public static IStashboxContainer Register<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom

Registers a type.

public static IStashboxContainer RegisterInstance(this IDependencyRegistrator registrator, object instance, object name = null, bool withoutDisposalTracking = false)

Registers an already constructed instance into the container.

public static IStashboxContainer RegisterInstancesAs<TFrom>(this IDependencyRegistrator registrator, IEnumerable<TFrom> instances, bool withoutDisposalTracking = false)

Registers already constructed instances into the container.

public static IStashboxContainer RegisterInstancesAs<TFrom>(this IDependencyRegistrator registrator, TFrom[] instances)

Registers already constructed instances into the container.

public static IStashboxContainer RegisterScoped<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom

Registers a type with scoped lifetime.

public static IStashboxContainer RegisterScoped(this IDependencyRegistrator registrator, Type typeFrom, Type typeTo, object name = null)

Registers a type with scoped lifetime.

public static IStashboxContainer RegisterScoped<TTo>(this IDependencyRegistrator registrator, object name = null)

Registers a type with scoped lifetime.

public static IStashboxContainer RegisterSingleton<TFrom, TTo>(this IDependencyRegistrator registrator, object name = null) where TTo : TFrom

Registers a type with singleton lifetime.

public static IStashboxContainer RegisterSingleton<TTo>(this IDependencyRegistrator registrator, object name = null)

Registers a type with singleton lifetime.

public static IStashboxContainer RegisterSingleton(this IDependencyRegistrator registrator, Type typeFrom, Type typeTo, object name = null)

Registers a type with singleton lifetime.

public static IStashboxContainer WireUp(this IDependencyRegistrator registrator, object instance, object name = null, bool withoutDisposalTracking = false)

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