Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.0.0-preview-719" />

 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 with a name.

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

Registers instances that are already constructed.

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

Registers instances that are already constructed.

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.