Beispiel #1
0
 public Task <IExecutionResult> Execute(BreakerExecutionContext executionContext)
 {
     try
     {
         return(this.ExecuteInternal(executionContext));
     }
     catch (Exception e)
     {
         return(Trip(e, executionContext));
     }
 }
Beispiel #2
0
 public abstract IExecutionResult Execute(BreakerExecutionContext executionContext);
Beispiel #3
0
 protected abstract Task <IExecutionResult> ExecuteInternal(BreakerExecutionContext executionContext);
Beispiel #4
0
 protected abstract Task <IExecutionResult> Trip(Exception e, BreakerExecutionContext executionContext);