简体   繁体   English

工作流基础:在Asp .net中获取终止原因

[英]Workflow foundation: Get the termination reason in Asp .net

Is there any way to get the Termination Reason that is inserted into the TerminateWorkflow activity inside an ASP .NET application?. 是否有任何方法可以将终止原因插入到ASP .NET应用程序的TerminateWorkflow活动中? For example the following doesnt works. 例如,以下方法不起作用。

 app.Completed =(e) =>
                {

            HttpContext.Current.Response.Write("Exception:" + o.Reason.GetType().FullName + o.Reason.Message);
            syncEvent.Set();
        };

Does anyone has any ideas ? 有人有什么想法吗?

尝试处理app.Aborted事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM