See ICriticalErrorContext.
Inheritance: ICriticalErrorContext
Beispiel #1
0
 void RaiseForEndpoint(string errorMessage, Exception exception)
 {
     Task.Run(() =>
     {
         var context = new CriticalErrorContext(endpoint.Stop, errorMessage, exception);
         return(criticalErrorAction(context));
     }).Ignore();
 }
Beispiel #2
0
 void RaiseForEndpoint(string errorMessage, Exception exception, CancellationToken cancellationToken)
 {
     _ = Task.Run(() =>
     {
         var context = new CriticalErrorContext(endpoint.Stop, errorMessage, exception);
         return(criticalErrorAction(context, cancellationToken));
     }, cancellationToken);
 }
 void RaiseForEndpoint(string errorMessage, Exception exception)
 {
     Task.Run(() =>
     {
         var context = new CriticalErrorContext(endpoint.Stop, errorMessage, exception);
         return criticalErrorAction(context);
     });
 }