예제 #1
0
 public StatefulTaskWithRollbackWrapper(
     StatefulTaskDoAction <TContext, TStateId> doAction,
     StatefulTaskRollbackAction <TContext>?rollbackAction)
 {
     _doAction       = doAction.ThrowIfNull(nameof(doAction));
     _rollbackAction = rollbackAction ??
                       (context => StatefulTaskWithRollbackWrapper.DefaultTryRollbackSafe(context));
 }
예제 #2
0
 bool IRollbackAction <TContext> .TryRollbackSafe(TContext context)
 {
     return(StatefulTaskWithRollbackWrapper.DefaultTryRollbackSafe(context));
 }