private void cmdStartWorkflow_Click(object sender, EventArgs e) { // create gateway var centralDAL = CssContext.Instance.GetDAL(string.Empty) as DAL; CentralMessageGateway messageGateway = new CentralMessageGateway(centralDAL); // create message var msg = new StartWorkflowMessage(); msg.PropertyBag.WorkflowName = "CSWF"; msg.PropertyBag.ContactID = _contactID; //send messageGateway.SendMessage <StartWorkflowMessage>(msg); }
private void cmdStartWorkflow_Click(object sender, EventArgs e) { // create gateway var centralDAL = CssContext.Instance.GetDAL(string.Empty) as DAL; CentralMessageGateway messageGateway = new CentralMessageGateway(centralDAL); // create message var msg = new StartWorkflowMessage(); msg.PropertyBag.WorkflowName = "CSWF"; msg.PropertyBag.ContactID = _contactID; //send messageGateway.SendMessage<StartWorkflowMessage>(msg); }