Beispiel #1
0
        public WorkflowAction ReplyTo(WorkflowSignaledEvent workflowSignaledEvent)
        {
            Ensure.NotNull(workflowSignaledEvent, "workflowSignaledEvent");
            if (!workflowSignaledEvent.IsSentByWorkflow)
            {
                throw new SignalException(Resources.Can_not_reply_to_signal);
            }

            return(WorkflowAction.Signal(_signalName, _input, workflowSignaledEvent.ExternalWorkflowId, workflowSignaledEvent.ExternalWorkflowRunid));
        }
Beispiel #2
0
 public WorkflowAction ForWorkflow(string workflowId, string runId)
 {
     Ensure.NotNullAndEmpty(workflowId, "workflowId");
     return(WorkflowAction.Signal(_signalName, _input, workflowId, runId));
 }
Beispiel #3
0
        public WorkflowAction SignalAction(string signalName, string input)
        {
            var lastEvent = LastEvent() as ChildWorkflowEvent;

            return(WorkflowAction.Signal(signalName, input, ScheduleId, lastEvent?.RunId));
        }