diff --git a/src/DotNetCore.CAP/Internal/ConsumerInvokerFactory.cs b/src/DotNetCore.CAP/Internal/ConsumerInvokerFactory.cs index 37349df..03d00ac 100644 --- a/src/DotNetCore.CAP/Internal/ConsumerInvokerFactory.cs +++ b/src/DotNetCore.CAP/Internal/ConsumerInvokerFactory.cs @@ -26,7 +26,7 @@ namespace DotNetCore.CAP.Internal { var context = new ConsumerInvokerContext(consumerContext); - context.Result = new ConsumerInvoker(_logger, _serviceProvider, _modelBinder, consumerContext); + context.Result = new DefaultConsumerInvoker(_logger, _serviceProvider, _modelBinder, consumerContext); return context.Result; } diff --git a/src/DotNetCore.CAP/Internal/ConsumerInvoker.cs b/src/DotNetCore.CAP/Internal/IConsumerInvoker.Default.cs similarity index 95% rename from src/DotNetCore.CAP/Internal/ConsumerInvoker.cs rename to src/DotNetCore.CAP/Internal/IConsumerInvoker.Default.cs index 6d52d20..ae26f6b 100644 --- a/src/DotNetCore.CAP/Internal/ConsumerInvoker.cs +++ b/src/DotNetCore.CAP/Internal/IConsumerInvoker.Default.cs @@ -8,7 +8,7 @@ using Microsoft.Extensions.Logging; namespace DotNetCore.CAP.Internal { - public class ConsumerInvoker : IConsumerInvoker + public class DefaultConsumerInvoker : IConsumerInvoker { protected readonly ILogger _logger; protected readonly IServiceProvider _serviceProvider; @@ -16,7 +16,7 @@ namespace DotNetCore.CAP.Internal private readonly ObjectMethodExecutor _executor; protected readonly ConsumerContext _consumerContext; - public ConsumerInvoker(ILogger logger, + public DefaultConsumerInvoker(ILogger logger, IServiceProvider serviceProvider, IModelBinder modelBinder, ConsumerContext consumerContext)