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);
     });
 }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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));
        }
Beispiel #5
0
        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));
        }
Beispiel #6
0
        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);
 }