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); }); }
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)); }
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)); }
public Task SendResponseAsync(ArticlePriceResponse response, CancellationToken cancellationToken = default) { return(base.SendResponseAsync(response, cancellationToken)); }
public void SendResponse(ArticlePriceResponse response) { base.SendResponse(response); }
public ArticlePriceFinishedProcessState(ArticlePriceRequest request, ArticlePriceResponse response) { this.Request = request; this.Response = response; }