Bladeren bron

code cleanup

master
Savorboard 5 jaren geleden
bovenliggende
commit
11d61b4694
2 gewijzigde bestanden met toevoegingen van 5 en 14 verwijderingen
  1. +2
    -10
      src/DotNetCore.CAP/Internal/IConsumerInvoker.Default.cs
  2. +3
    -4
      src/DotNetCore.CAP/Internal/IConsumerRegister.Default.cs

+ 2
- 10
src/DotNetCore.CAP/Internal/IConsumerInvoker.Default.cs Bestand weergeven

@@ -15,19 +15,11 @@ namespace DotNetCore.CAP.Internal
internal class DefaultConsumerInvoker : IConsumerInvoker
{
private readonly ILogger _logger;
//private readonly IMessagePacker _messagePacker;
//private readonly IModelBinderFactory _modelBinderFactory;
private readonly IServiceProvider _serviceProvider;
public DefaultConsumerInvoker(ILoggerFactory loggerFactory,
IServiceProvider serviceProvider
//IMessagePacker messagePacker,
//IModelBinderFactory modelBinderFactory
)
public DefaultConsumerInvoker(ILoggerFactory loggerFactory,IServiceProvider serviceProvider)
{
//_modelBinderFactory = modelBinderFactory;
_serviceProvider = serviceProvider;
//_messagePacker = messagePacker;
_logger = loggerFactory.CreateLogger<DefaultConsumerInvoker>();
}
@@ -35,7 +27,7 @@ namespace DotNetCore.CAP.Internal
{
cancellationToken.ThrowIfCancellationRequested();
_logger.LogDebug("Executing consumer Topic: {0}", context.ConsumerDescriptor.MethodInfo.Name);
_logger.LogDebug("Executing subscriber method : {0}", context.ConsumerDescriptor.MethodInfo.Name);
var executor = ObjectMethodExecutor.Create(
context.ConsumerDescriptor.MethodInfo,


+ 3
- 4
src/DotNetCore.CAP/Internal/IConsumerRegister.Default.cs Bestand weergeven

@@ -39,14 +39,13 @@ namespace DotNetCore.CAP.Internal
private static readonly DiagnosticListener s_diagnosticListener =
new DiagnosticListener(CapDiagnosticListenerExtensions.DiagnosticListenerName);

public ConsumerRegister(
public ConsumerRegister(ILogger<ConsumerRegister> logger,
IOptions<CapOptions> options,
MethodMatcherCache selector,
IConsumerClientFactory consumerClientFactory,
IDispatcher dispatcher,
ISerializer serializer,
IDataStorage storage,
ILogger<ConsumerRegister> logger,
MethodMatcherCache selector)
IDataStorage storage)
{
_options = options.Value;
_selector = selector;


Laden…
Annuleren
Opslaan