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