Пример #1
0
 public StraightforwardStatefulTaskWithRollbackWrapper(
     StraightforwardStatefulTaskDoAction <TContext> doAction,
     StatefulTaskRollbackAction <TContext>?rollbackAction)
 {
     _doAction       = doAction.ThrowIfNull(nameof(doAction));
     _rollbackAction = rollbackAction ??
                       (context => StatefulTaskWithRollbackWrapper.DefaultTryRollbackSafe(context));
 }
Пример #2
0
 public StraightforwardStatefulTaskWrapper(
     StraightforwardStatefulTaskDoAction <TContext> doAction)
 {
     _doAction = doAction.ThrowIfNull(nameof(doAction));
 }