C# Class NServiceBus.CriticalError

A holder for that exposes access to the action defined by ConfigureCriticalErrorAction.DefineCriticalErrorAction(Configure,Action{string,Exception}).
Mostra file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
CriticalError ( Task>.Func onCriticalErrorAction ) : System

Initializes a new instance of CriticalError.

Raise ( string errorMessage, Exception exception ) : void

Trigger the action defined by .

RaiseForEndpoint ( string errorMessage, Exception exception ) : void

Private Methods

Method Description
DefaultCriticalErrorHandling ( ICriticalErrorContext criticalErrorContext ) : System.Threading.Task
SetEndpoint ( IEndpointInstance endpointInstance ) : void

Method Details

CriticalError() public method

Initializes a new instance of CriticalError.
public CriticalError ( Task>.Func onCriticalErrorAction ) : System
onCriticalErrorAction Task>.Func The action to execute when a critical error is triggered.
return System

Raise() public method

Trigger the action defined by .
public Raise ( string errorMessage, Exception exception ) : void
errorMessage string
exception System.Exception
return void

RaiseForEndpoint() public method

public RaiseForEndpoint ( string errorMessage, Exception exception ) : void
errorMessage string
exception System.Exception
return void