A service behavior that enables you to specify the action to take when an unhandled exception occurs within a workflow service.
Assembly: System.ServiceModel.Activities (in System.ServiceModel.Activities.dll)
Initializes a new instance of theclass.
|AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)|
Implements the IServiceBehavior.AddBindingParameters method to support the behavior.
Implements the IServiceBehavior.ApplyDispatchBehavior method to support the behavior.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Implements the IServiceBehavior.Validate method to support the behavior.
Both OnUnhandledException and dictate the behavior of the runtime when an exception is not handled in the workflow; however, has the option of leaving a suspended workflow in the persistence store, while OnUnhandledException does not. The reason for this is that what happens to a suspended workflow is host-specific, and WorkflowApplication is not. To implement this functionality using WorkflowApplication, create a custom PersistenceParticipant that has this behavior.
For an example of how to use this behavior see Workflow Service Host Extensibility.
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.