Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.1.1-preview-552" />

 DecoratorRegistratorExtensions

public static class DecoratorRegistratorExtensions
Represents the extension methods of IDecoratorRegistrator.
public static IStashboxContainer RegisterDecorator<TFrom, TTo>(this IDecoratorRegistrator registrator, Action<DecoratorConfigurator> configurator = null) where TTo : TFrom

Registers a decorator type into the container with custom configuration.

public static IStashboxContainer RegisterDecorator<TFrom>(this IDecoratorRegistrator registrator, Type typeTo, Action<DecoratorConfigurator> configurator = null)

Registers a decorator type into the container with custom configuration.