开发者

Workflow foundation: Get the termination reason in Asp .net

开发者 https://www.devze.com 2023-04-01 13:13 出处:网络
Is there any way to get the Termination Reason that is inserted into the TerminateWorkflow activity inside an ASP .NET application?. For example the following doesnt works.

Is there any way to get the Termination Reason that is inserted into the TerminateWorkflow activity inside an ASP .NET application?. For example the following doesnt works.

 app.Completed =(e) =>
                {

            HttpContext.Current.Response.Wri开发者_如何学运维te("Exception:" + o.Reason.GetType().FullName + o.Reason.Message);
            syncEvent.Set();
        };

Does anyone has any ideas ?


Try handling the app.Aborted event instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消