public StraightforwardStatefulTaskWithRollbackWrapper( StraightforwardStatefulTaskDoAction <TContext> doAction, StatefulTaskRollbackAction <TContext>?rollbackAction) { _doAction = doAction.ThrowIfNull(nameof(doAction)); _rollbackAction = rollbackAction ?? (context => StatefulTaskWithRollbackWrapper.DefaultTryRollbackSafe(context)); }
public StraightforwardStatefulTaskWrapper( StraightforwardStatefulTaskDoAction <TContext> doAction) { _doAction = doAction.ThrowIfNull(nameof(doAction)); }