Пример #1
0
        public OutputStartedProcessState(OutputWorkflow workflow,
                                         OutputRequest request,
                                         Action <MessageReceivedEventArgs <OutputMessage> > outputProgressCallback)
        {
            this.Workflow = workflow;
            this.Request  = request;

            this.Interceptor = new MessageInterceptor <OutputMessage>(this.Workflow.Dialog,
                                                                      new MessageFilter(this.Request.Id),
                                                                      (MessageReceivedEventArgs <OutputMessage> e) =>
            {
                outputProgressCallback(e);
            });

            this.Response = this.Workflow.SendRequest(this.Request,
                                                      () =>
            {
                return(this.Workflow.Dialog.SendRequest(request));
            });
        }
Пример #2
0
 public OutputCreatedProcessState(OutputWorkflow workflow,
                                  OutputRequest request)
 {
     this.Workflow = workflow;
     this.Request  = request;
 }