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;
 }
예제 #2
0
 public SagaService(ISagaStorage sagaStorage, ISagasBuffer sagasBuffer, IOptions <PoleSagasServerOption> poleSagasServerOption)
 {
     this.sagaStorage           = sagaStorage;
     this.sagasBuffer           = sagasBuffer;
     this.poleSagasServerOption = poleSagasServerOption.Value;
 }