Which strategy should you use?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You plan to use an exception logging strategy to log unhandled exceptions that occur in the workflow. You need to identify a logging strategy that works for Sequential workflows and state machineCbased workflows. Which strategy should you use?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5. You plan to use an exception logging strategy to log unhandled exceptions that occur in the workflow. You need to identify a logging strategy that works for Sequential workflows and state machineCbased workflows. Which strategy should you use?

A.
Bind an event handler to the WorkflowTerminated event of the WorkflowRuntime instance in the host application. Log the exception inline.

B.
Add a FaultHandlersActivity activity to the workflow and include a FaultHandlerActivity activity that matches the System.Exception type. Log the exception by using the CodeActivity activity.

C.
Create a custom class derived from WorkflowRuntimeService that binds an event handler to the WorkflowAborted event of the WorkflowRuntime instance in the host application. Log the workflow inline.

D.
Declare a global EventDrivenActivity activity named ExceptionOccurred and add a FaultHandlersActivity activity to it. Include a FaultHandlerActivity activity that matches the System.Exception type. Log the exception by using the CodeActivity activity.



Leave a Reply 0

Your email address will not be published. Required fields are marked *