Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.13.0-preview-825" />

 IDependencyReMapper

public interface IDependencyReMapper
Represents a dependency remapper.
using Stashbox.Registration.Fluent; using System; using System.Runtime.CompilerServices; namespace Stashbox { [System.Runtime.CompilerServices.NullableContext(1)] public interface IDependencyReMapper { IStashboxContainer ReMap<TFrom, TTo>([System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1, 1, 1 })] Action<RegistrationConfigurator<TFrom, TTo>> configurator = null) where TFrom : class where TTo : class, TFrom; IStashboxContainer ReMap<TFrom>(Type typeTo, [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1, 1, 1 })] Action<RegistrationConfigurator<TFrom, TFrom>> configurator = null) where TFrom : class; IStashboxContainer ReMap(Type typeFrom, Type typeTo, [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] Action<RegistrationConfigurator> configurator = null); IStashboxContainer ReMap<TTo>([System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1, 1, 1 })] Action<RegistrationConfigurator<TTo, TTo>> configurator = null) where TTo : class; IStashboxContainer ReMapDecorator(Type typeFrom, Type typeTo, [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] Action<DecoratorConfigurator> configurator = null); IStashboxContainer ReMapDecorator<TFrom, TTo>([System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1, 1, 1 })] Action<DecoratorConfigurator<TFrom, TTo>> configurator = null) where TFrom : class where TTo : class, TFrom; IStashboxContainer ReMapDecorator<TFrom>(Type typeTo, [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1, 1, 1 })] Action<DecoratorConfigurator<TFrom, TFrom>> configurator = null) where TFrom : class; } }