Преглед на файлове

add IPublishExecutor

master
Savorboard преди 7 години
родител
ревизия
5af28b6014
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  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 Целия файл

@@ -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 Целия файл

@@ -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>();
}
}
}

Зареждане…
Отказ
Запис