Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="4.1.0-preview-677" />

 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 RegisterInstances<TFrom>(this IDependencyRegistrator registrator, IEnumerable<TFrom> instances, bool withoutDisposalTracking = false)

Registers already constructed instances into the container.

public static IStashboxContainer RegisterInstances<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.