Example #1
0
 private async Task Compensate(SagaExecutionContext <TContext> result, SagaStepContainer <TContext> step)
 {
     try
     {
         await step.Compensate(Context);
     }
     catch (Exception e2)
     {
         result.AddError(e2);
     }
 }
Example #2
0
 private static bool Terminate_On_Error(SagaStepContainer <TContext> step) => step.OnErrorBehavior == ErrorBehavior.Terminate;