internal void SendResponse(StockDeliveryInfoResponse response)
 {
     this.SendResponse(response,
                       () =>
     {
         this.Dialog.SendResponse(response);
     });
 }
 internal Task SendResponseAsync(StockDeliveryInfoResponse response, CancellationToken cancellationToken = default)
 {
     return(this.SendResponseAsync(response,
                                   () =>
     {
         return this.Dialog.SendResponseAsync(response, cancellationToken);
     }));
 }
Beispiel #3
0
        public IStockDeliveryInfoFinishedProcessState StartProcess(StockDeliveryInfoRequestTask task, bool?includeTaskDetails)
        {
            StockDeliveryInfoRequest request = this.CreateRequest(task, includeTaskDetails);

            StockDeliveryInfoResponse response = this.SendRequest(request,
                                                                  () =>
            {
                return(this.Dialog.SendRequest(request));
            });

            return(new StockDeliveryInfoFinishedProcessState(request, response));
        }
Beispiel #4
0
        public async Task <IStockDeliveryInfoFinishedProcessState> StartProcessAsync(StockDeliveryInfoRequestTask task,
                                                                                     bool?includeTaskDetails,
                                                                                     CancellationToken cancellationToken = default)
        {
            StockDeliveryInfoRequest request = this.CreateRequest(task, includeTaskDetails);

            StockDeliveryInfoResponse response = await this.SendRequestAsync(request,
                                                                             () =>
            {
                return(this.Dialog.SendRequestAsync(request, cancellationToken));
            }).ConfigureAwait(continueOnCapturedContext: false);

            return(new StockDeliveryInfoFinishedProcessState(request, response));
        }
 public Task SendResponseAsync(StockDeliveryInfoResponse response, CancellationToken cancellationToken = default)
 {
     return(base.SendResponseAsync(response, cancellationToken));
 }
 public void SendResponse(StockDeliveryInfoResponse response)
 {
     base.SendResponse(response);
 }
Beispiel #7
0
 public StockDeliveryInfoFinishedProcessState(StockDeliveryInfoRequest request,
                                              StockDeliveryInfoResponse response)
 {
     this.Request  = request;
     this.Response = response;
 }