protected WorkflowMessage(IWorkflowQueue queue, string id, string module, string method, object parameter, string receiptId) { this.Id = id; this.Module = module; this.Method = method; this.Parameter = parameter; this.ReceiptId = receiptId; this._queue = queue; }
public static WorkflowMessage CreateFrom(IWorkflowQueue queue, string id, string body, string receipt) { if (queue == null) { throw new ArgumentNullException(nameof(queue)); } string[] comp1 = body.Split(':', 2); string[] comp2 = comp1[1].Split('(', 2); string module = comp1[0].Trim(); string method = comp2[0].Trim(); string jsonParameter = comp2[1].Trim(')', ' ', '\t', '\r', '\n'); var parameter = JsonConvert.DeserializeObject(jsonParameter); return(new WorkflowMessage(queue, id, module, method, parameter, receipt)); }
public WorkflowServer(IWorkflowQueue queue) { _queue = queue; }
public WorkflowClient(IWorkflowQueue queue) { _queue = queue; }
public Workflow(IWorkflowQueue queue) { _queue = queue; }