internal Task SendResponseAsync(InitiateInputResponse response, CancellationToken cancellationToken = default) { return(this.SendResponseAsync(response, () => { return this.Dialog.SendResponseAsync(response, cancellationToken); })); }
internal void SendResponse(InitiateInputResponse response) { this.SendResponse(response, () => { this.Dialog.SendResponse(response); }); }
public void Reject(IEnumerable <InitiateInputResponseArticle> articles, int inputSource, int?inputPoint) { this.OnStateChange(); InitiateInputResponse response = this.CreateResponse(InitiateInputResponseStatus.Rejected, articles, inputSource, inputPoint); this.Workflow.SendResponse(response); }
public Task RejectAsync(IEnumerable <InitiateInputResponseArticle> articles, int inputSource, int?inputPoint, CancellationToken cancellationToken = default) { this.OnStateChange(); InitiateInputResponse response = this.CreateResponse(InitiateInputResponseStatus.Rejected, articles, inputSource, inputPoint); return(this.Workflow.SendResponseAsync(response, cancellationToken)); }
public IInitiateInputAcceptedProcessState Accept(IEnumerable <InitiateInputResponseArticle> articles, int inputSource, int?inputPoint) { this.OnStateChange(); InitiateInputResponse response = this.CreateResponse(InitiateInputResponseStatus.Accepted, articles, inputSource, inputPoint); this.Workflow.SendResponse(response); return(new InitiateInputAcceptedProcessState(this.Workflow, this.Request)); }
public async Task <IInitiateInputAcceptedProcessState> AcceptAsync(IEnumerable <InitiateInputResponseArticle> articles, int inputSource, int?inputPoint, CancellationToken cancellationToken = default) { this.OnStateChange(); InitiateInputResponse response = this.CreateResponse(InitiateInputResponseStatus.Accepted, articles, inputSource, inputPoint); await this.Workflow.SendResponseAsync(response, cancellationToken).ConfigureAwait(continueOnCapturedContext: false); return(new InitiateInputAcceptedProcessState(this.Workflow, this.Request)); }
public Task SendResponseAsync(InitiateInputResponse response, CancellationToken cancellationToken = default) { return(base.SendResponseAsync(response, cancellationToken)); }
public void SendResponse(InitiateInputResponse response) { base.SendResponse(response); }