Exemplo n.º 1
0
 public ProducerServiceWorker(
     ILogger <ProducerServiceWorker> logger,
     IEventBusDispatcher eventBusDispatcher,
     IProducerWorkerConfigProvider producerWorkerConfigProvider)
 {
     _logger = logger;
     this.eventBusDispatcher           = eventBusDispatcher;
     this.producerWorkerConfigProvider = producerWorkerConfigProvider;
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public IntegrationEventController(IEventBusDispatcher eventDispatch)
 {
     this.eventDispatch = eventDispatch;
 }
 public ActiveCustomerCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
Exemplo n.º 5
0
 public ConsumerHostedService23(ILogger <ConsumerHostedService23> logger, IKafkaConsumerConnection connection,
                                IServiceProvider services, IEventBusDispatcher bus) : base(logger, connection, services)
 {
 }
Exemplo n.º 6
0
 public RegisterCustomerCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
Exemplo n.º 7
0
 public ConfirmOrderCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
Exemplo n.º 8
0
 public CancelOrderCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
Exemplo n.º 9
0
 public PlaceOrderCommandHandler(IEventBusDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
Exemplo n.º 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;
 }