public static IStageCommandConfig <TStage> WithAbortSessionCommand <TStage>(this IStageCommandConfig <TStage> stageConfig, ISessionCommandDefinition <TStage> sessionCommand) { stageConfig.DefineAbortSessionCommand(sessionCommand); return(stageConfig); }
public static IStageCommandConfig <TStage> WithAbortSessionCommand <TStage>(this IStageCommandConfig <TStage> stageConfig, Action <TStage> sessionCommand, Action <TStage> postSessionCommand = null) { stageConfig.DefineAbortSessionCommand(new SessionCommandDefinition <TStage>(sessionCommand, postSessionCommand)); return(stageConfig); }