예제 #1
0
 public ExpiredSagasCollectorProcessor(ISagaStorage sagaStorage, IOptions <PoleSagasServerOption> options, ILogger <ExpiredSagasCollectorProcessor> logger, ISagaStorageInitializer sagaStorageInitializer)
 {
     this.sagaStorage            = sagaStorage;
     this.options                = options.Value ?? throw new Exception($"{nameof(PoleSagasServerOption)} Must be injected");
     this.logger                 = logger;
     this.sagaStorageInitializer = sagaStorageInitializer;
 }
 public NotEndedSagasFetchProcessor(ISagaStorage sagaStorage, IOptions <PoleSagasServerOption> options, ILogger <NotEndedSagasFetchProcessor> logger,
                                    ISagasBuffer sagasBuffer)
 {
     this.sagaStorage = sagaStorage;
     this.options     = options.Value ?? throw new Exception($"{nameof(PoleSagasServerOption)} Must be injected");
     this.logger      = logger;
     this.sagasBuffer = sagasBuffer;
 }
예제 #3
0
 public PrometheusFailedSagasGaugeProcessor(
     ILogger <PrometheusFailedSagasGaugeProcessor> logger,
     ISagaStorage sagaStorage,
     IOptions <PoleSagasServerOption> poleOptions)
 {
     this.logger      = logger;
     this.sagaStorage = sagaStorage;
     this.poleOptions = poleOptions.Value;
 }
예제 #4
0
 public SagaService(ISagaStorage sagaStorage, ISagasBuffer sagasBuffer, IOptions <PoleSagasServerOption> poleSagasServerOption)
 {
     this.sagaStorage           = sagaStorage;
     this.sagasBuffer           = sagasBuffer;
     this.poleSagasServerOption = poleSagasServerOption.Value;
 }