Class ErrorCallbackHandler
This handler provides an OnError action that can be used as hook for external code to handle exceptions in the runtime pipeline.
public class ErrorCallbackHandler : PipelineHandler, IPipelineHandler
- Inheritance
-
ErrorCallbackHandler
- Implements
- Inherited Members
Constructors
ErrorCallbackHandler()
public ErrorCallbackHandler()
Properties
OnError
Action to execute if an exception occurs during the execution of any underlying handlers.
public Action<IExecutionContext, Exception> OnError { get; set; }
Property Value
Methods
HandleException(IExecutionContext, Exception)
Executes the OnError action if an exception occurs during the execution of any underlying handlers.
protected void HandleException(IExecutionContext executionContext, Exception exception)
Parameters
executionContext
IExecutionContextexception
Exception
InvokeAsyncCallback(IAsyncExecutionContext)
protected override void InvokeAsyncCallback(IAsyncExecutionContext executionContext)
Parameters
executionContext
IAsyncExecutionContext
InvokeSync(IExecutionContext)
public override void InvokeSync(IExecutionContext executionContext)
Parameters
executionContext
IExecutionContext