Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
 public WorkflowServer(IWorkflowQueue queue)
 {
     _queue = queue;
 }
Exemplo n.º 4
0
 public WorkflowClient(IWorkflowQueue queue)
 {
     _queue = queue;
 }
Exemplo n.º 5
0
 public Workflow(IWorkflowQueue queue)
 {
     _queue = queue;
 }