Ver a proveniência

add IPublishExecutor

master
Savorboard há 7 anos
ascendente
cometimento
5af28b6014
2 ficheiros alterados com 2 adições e 2 eliminações
  1. +1
    -0
      src/DotNetCore.CAP.Kafka/CAP.KafkaCapOptionsExtension.cs
  2. +1
    -2
      src/DotNetCore.CAP.RabbitMQ/CAP.RabbitMQCapOptionsExtension.cs

+ 1
- 0
src/DotNetCore.CAP.Kafka/CAP.KafkaCapOptionsExtension.cs Ver ficheiro

@@ -24,6 +24,7 @@ namespace DotNetCore.CAP

services.AddSingleton<IConsumerClientFactory, KafkaConsumerClientFactory>();
services.AddSingleton<IQueueExecutor, PublishQueueExecutor>();
services.AddSingleton<IPublishExecutor, PublishQueueExecutor>();
}
}
}

+ 1
- 2
src/DotNetCore.CAP.RabbitMQ/CAP.RabbitMQCapOptionsExtension.cs Ver ficheiro

@@ -23,10 +23,9 @@ namespace DotNetCore.CAP
services.AddSingleton(options);

services.AddSingleton<IConsumerClientFactory, RabbitMQConsumerClientFactory>();

services.AddSingleton<ConnectionPool>();

services.AddSingleton<IQueueExecutor, PublishQueueExecutor>();
services.AddSingleton<IPublishExecutor, PublishQueueExecutor>();
}
}
}

Carregando…
Cancelar
Guardar