我有一个带有 In/Out 参数的工作流,但我没有在 WorkflowApplicationCompletedEventArgs.Outputs 中取回它。
我有 2 个论点:
DataParams which is In/Out
ClassParams which is In
我这样称呼工作流程:
IDictionary<string, object> inParams = new Dictionary<string, object>
{
{"DataParams", _dataParameters },
{"ClassParams", _classParameters },
};
workflowApp = new WorkflowApplication(new actSendToClient(), inParams);
workflowApp.Completed = e => SendToClientWorkflowCompleted(e);
workflowApp.Run();
一段时间后,如果用户在主机中取消此方法,则会调用:
workflowApp.Cancel();
哪些路由到委托方法:
public void SendToClientWorkflowCompleted(WorkflowApplicationCompletedEventArgs e)
{
var output = e.Outputs;
}
我在 e.Outputs 中一无所获。我究竟做错了什么?