Stashbox by Peter Csajtai

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

 IDependencyReMapper

public interface IDependencyReMapper
Represents a dependency remapper.
using Stashbox.Registration.Fluent; using System; namespace Stashbox { public interface IDependencyReMapper { IStashboxContainer ReMap<TFrom, TTo>(Action<RegistrationConfigurator<TTo>> configurator = null) where TFrom : class where TTo : class, TFrom; IStashboxContainer ReMap<TFrom>(Type typeTo, Action<RegistrationConfigurator<TFrom>> configurator = null) where TFrom : class; IStashboxContainer ReMap(Type typeFrom, Type typeTo, Action<RegistrationConfigurator> configurator = null); IStashboxContainer ReMap<TTo>(Action<RegistrationConfigurator<TTo>> configurator = null) where TTo : class; IStashboxContainer ReMapDecorator(Type typeFrom, Type typeTo, Action<DecoratorConfigurator> configurator = null); } }