internal Task SendResponseAsync(ArticlePriceResponse response, CancellationToken cancellationToken = default)
 {
     return(this.SendResponseAsync(response,
                                   () =>
     {
         return this.Dialog.SendResponseAsync(response, cancellationToken);
     }));
 }
 internal void SendResponse(ArticlePriceResponse response)
 {
     this.SendResponse(response,
                       () =>
     {
         this.Dialog.SendResponse(response);
     });
 }
Beispiel #3
0
        public IArticlePriceFinishedProcessState StartProcess(IEnumerable <ArticlePriceRequestArticle> articles, Iso4217Code?currency)
        {
            ArticlePriceRequest request = this.CreateRequest(articles, currency);

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

            return(new ArticlePriceFinishedProcessState(request, response));
        }
Beispiel #4
0
        public async Task <IArticlePriceFinishedProcessState> StartProcessAsync(IEnumerable <ArticlePriceRequestArticle> articles,
                                                                                Iso4217Code?currency,
                                                                                CancellationToken cancellationToken = default)
        {
            ArticlePriceRequest request = this.CreateRequest(articles, currency);

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

            return(new ArticlePriceFinishedProcessState(request, response));
        }
Beispiel #5
0
 public Task SendResponseAsync(ArticlePriceResponse response, CancellationToken cancellationToken = default)
 {
     return(base.SendResponseAsync(response, cancellationToken));
 }
Beispiel #6
0
 public void SendResponse(ArticlePriceResponse response)
 {
     base.SendResponse(response);
 }
Beispiel #7
0
 public ArticlePriceFinishedProcessState(ArticlePriceRequest request, ArticlePriceResponse response)
 {
     this.Request  = request;
     this.Response = response;
 }