diff --git a/src/Scrutor/DecorationStrategy.cs b/src/Scrutor/DecorationStrategy.cs index 92a1d0f..5d806ea 100644 --- a/src/Scrutor/DecorationStrategy.cs +++ b/src/Scrutor/DecorationStrategy.cs @@ -22,13 +22,13 @@ internal static DecorationStrategy WithType(Type serviceType, Type decoratorType internal static DecorationStrategy WithFactory(Type serviceType, Func decoratorFactory) => Create(serviceType, decoratorType: null, decoratorFactory); - private protected static Func TypeDecorator(Type serviceType, Type decoratorType) => serviceProvider => + protected static Func TypeDecorator(Type serviceType, Type decoratorType) => serviceProvider => { var instanceToDecorate = serviceProvider.GetRequiredService(serviceType); return ActivatorUtilities.CreateInstance(serviceProvider, decoratorType, instanceToDecorate); }; - private protected static Func FactoryDecorator(Type decorated, Func decoratorFactory) => serviceProvider => + protected static Func FactoryDecorator(Type decorated, Func decoratorFactory) => serviceProvider => { var instanceToDecorate = serviceProvider.GetRequiredService(decorated); return decoratorFactory(instanceToDecorate, serviceProvider); diff --git a/src/Scrutor/OpenGenericDecorationStrategy.cs b/src/Scrutor/OpenGenericDecorationStrategy.cs index 5111f0a..40a7ab7 100644 --- a/src/Scrutor/OpenGenericDecorationStrategy.cs +++ b/src/Scrutor/OpenGenericDecorationStrategy.cs @@ -2,7 +2,7 @@ namespace Scrutor; -internal sealed class OpenGenericDecorationStrategy : DecorationStrategy +public class OpenGenericDecorationStrategy : DecorationStrategy { public OpenGenericDecorationStrategy(Type serviceType, Type? decoratorType, Func? decoratorFactory) : base(serviceType) {