예제 #1
0
 public ProducerServiceWorker(
     ILogger <ProducerServiceWorker> logger,
     IEventBusDispatcher eventBusDispatcher,
     IProducerWorkerConfigProvider producerWorkerConfigProvider)
 {
     _logger = logger;
     this.eventBusDispatcher           = eventBusDispatcher;
     this.producerWorkerConfigProvider = producerWorkerConfigProvider;
 }
예제 #2
0
        private static double Publish(IEventBusDispatcher publisher, List <Msg2> lst)
        {
            var sw = Stopwatch.StartNew();

            foreach (var model in lst)
            {
                publisher.Publish(model);
            }

            sw.Stop();

            return(sw.Elapsed.TotalMilliseconds);
        }
예제 #3
0
 public IntegrationEventController(IEventBusDispatcher eventDispatch)
 {
     this.eventDispatch = eventDispatch;
 }
 public ActiveCustomerCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
예제 #5
0
 public ConsumerHostedService23(ILogger <ConsumerHostedService23> logger, IKafkaConsumerConnection connection,
                                IServiceProvider services, IEventBusDispatcher bus) : base(logger, connection, services)
 {
 }
예제 #6
0
 public RegisterCustomerCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
예제 #7
0
 public ConfirmOrderCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
예제 #8
0
 public CancelOrderCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
예제 #9
0
 public PlaceOrderCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
예제 #10
0
 public QueueModel(ILogger <QueueModel> logger, IEventBusDispatcher eventBusDispatcher)
 {
     this.logger             = logger;
     this.eventBusDispatcher = eventBusDispatcher;
 }
 public ExchangeModel(ILogger <ExchangeModel> logger, IEventBusDispatcher eventBusDispatcher)
 {
     this.logger             = logger;
     this.eventBusDispatcher = eventBusDispatcher;
 }