public FallbackOutboxEventProcessor(ILogger <FallbackOutboxEventProcessor> logger,
                                     IOutboxEventStore eventStore, IOutboxEventProcessor eventProcessor)
 {
     _logger         = logger;
     _eventStore     = eventStore;
     _eventProcessor = eventProcessor;
 }
Ejemplo n.º 2
0
 public OutboxEventProcessorHostedService(IServiceScopeFactory scopeFactory)
 {
     _scope          = scopeFactory.CreateScope();
     _listener       = _scope.ServiceProvider.GetRequiredService <IOutboxListener>();
     _eventProcessor = _scope.ServiceProvider.GetRequiredService <IOutboxEventProcessor>();
 }