0
我正在开发一个asp.net项目,该项目根据用户的某些选择开发工作流服务。当用户按照适当的步骤产生一个流程图。该流程图以下面的代码添加到工作流服务的主体中。以编程方式生成工作流服务
Flowchart flowchart = new Flowchart();
flowchart = (Code to fill the flowchart)...
Receive reserveSeat = new Receive();
WorkflowService service = new WorkflowService()
{
Body = flowchart,
Endpoints ={
new Endpoint
{
ServiceContractName="IService",
AddressUri = new Uri("http://localhost:2757"),
Binding = new BasicHttpBinding(),
}
}
};
有没有办法在上面的代码中添加一个接收活动在主体内而不是触摸流程图?我试过
Body = reserveSeat + flowchar,
但是不工作。有任何想法吗?