See ICriticalErrorContext.
Наследование: ICriticalErrorContext
Пример #1
0
 void RaiseForEndpoint(string errorMessage, Exception exception)
 {
     Task.Run(() =>
     {
         var context = new CriticalErrorContext(endpoint.Stop, errorMessage, exception);
         return(criticalErrorAction(context));
     }).Ignore();
 }
Пример #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);
 }
Пример #3
0
 void RaiseForEndpoint(string errorMessage, Exception exception)
 {
     Task.Run(() =>
     {
         var context = new CriticalErrorContext(endpoint.Stop, errorMessage, exception);
         return criticalErrorAction(context);
     });
 }