Ejemplo n.º 1
0
 public MessageProcessSaga(
     IHttpClientFactory clientFactory,
     ILogger <MessageProcessSaga> logger,
     IHubContext <ChatHub> hubContext,
     IPublishEndpoint publishEndpoint,
     CancelationTokenStore cancelationTokenStore
     )
 {
     this.clientFactory         = clientFactory;
     this.logger                = logger;
     this.hubContext            = hubContext;
     this.publishEndpoint       = publishEndpoint;
     this.cancelationTokenStore = cancelationTokenStore;
 }
Ejemplo n.º 2
0
 public LongHttpRequestConsumer(
     IHttpClientFactory clientFactory,
     ILogger <LongTaskHandler> logger,
     IHubContext <ChatHub> hubContext,
     ILongTaskHandler longTaskHandler,
     CancelationTokenStore cancelationTokenStore
     )
 {
     this.clientFactory         = clientFactory;
     this.logger                = logger;
     this.hubContext            = hubContext;
     this.longTaskHandler       = longTaskHandler;
     this.cancelationTokenStore = cancelationTokenStore;
 }
 public CancellationTokenSourceScope(Guid id, CancelationTokenStore store)
 {
     this.id    = id;
     this.store = store;
     Token      = store.GetOrAdd(id).Token;
 }