public static Action Create(Action <IFluentConfigurator <Action> > configure) { var action = new Action(); var configurator = new FluentConfigurator <Action>(action); configure?.Invoke(configurator); AddAction(action); return(action); }
public static Stage CreateDefault( Action <IFluentConfigurator <Stage> > configure, [CallerMemberName] string name = "") { var stage = new Stage(name); var configurator = new FluentConfigurator <Stage>(stage); configure?.Invoke(configurator); AddDefaultStage(stage); return(stage); }
public static Stage Create( Action <IFluentConfigurator <Stage> > configure, [CallerMemberName] string name = "") { var stage = new Stage(name); var configurator = new FluentConfigurator <Stage>(stage); configure?.Invoke(configurator); //if(!stage.HasAction) { var c = new Action <IFluentConfigurator <Stage> >(c => c //.WhenStageAllowed(() => stage) .Action(async w => await w.SetStageAsync(() => stage, "", "", false, false))); c(new FluentConfigurator <Stage>(stage)); } AddStage(stage); return(stage); }