/// <summary> /// Replaces an existing decorator mapping. /// </summary> /// <typeparam name="TFrom">Type that will be requested.</typeparam> /// <param name="reMapper">The remapper.</param> /// <param name="typeTo">Type that will be returned.</param> /// <param name="configurator">The configurator for the registered types.</param> /// <returns>The <see cref="IStashboxContainer"/> which on this method was called.</returns> public static IStashboxContainer ReMapDecorator <TFrom>(this IDependencyReMapper reMapper, Type typeTo, Action <IFluentDecoratorRegistrator> configurator = null) where TFrom : class => reMapper.ReMapDecorator(typeof(TFrom), typeTo, configurator);
/// <summary> /// Replaces an existing registration mapping. /// </summary> /// <param name="reMapper">The remapper.</param> /// <param name="typeTo">Type that will be returned.</param> /// <param name="configurator">The configurator for the registered types.</param> /// <returns>The <see cref="IStashboxContainer"/> which on this method was called.</returns> public static IStashboxContainer ReMap(this IDependencyReMapper reMapper, Type typeTo, Action <IFluentServiceRegistrator> configurator = null) => reMapper.ReMap(typeTo, typeTo, configurator);