protected virtual UserConfigServicePlantBox CreatePlantBox(InitPlantUCPipelineArg args) { var plantBox = new UserConfigServicePlantBox(); plantBox.RelatedPlantEx = args.RelatedPlant; plantBox.SettingsBox = args.SettingBox; plantBox.SettingsSteward = args.PersonalSettingsSteward; return plantBox; }
protected virtual UserConfigServicePlantBox CreatePlantBox(InitPlantUCPipelineArg args) { var plantBox = new UserConfigServicePlantBox(); plantBox.RelatedPlantEx = args.RelatedPlant; plantBox.SettingsBox = args.SettingBox; plantBox.SettingsSteward = args.PersonalSettingsSteward; return(plantBox); }
public virtual void Process(InitPlantUCPipelineArg args) { var appropriateWorkhorse = args.RelatedPlant.GetFirstWorkhorseOfType<IUserConfiguration>(); if (appropriateWorkhorse == null) { args.Abort(); return; } args.Workhorse = appropriateWorkhorse; }
public virtual void Process(InitPlantUCPipelineArg args) { var appropriateWorkhorse = args.RelatedPlant.GetFirstWorkhorseOfType <IUserConfiguration>(); if (appropriateWorkhorse == null) { args.Abort(); return; } args.Workhorse = appropriateWorkhorse; }
public virtual void Process(InitPlantUCPipelineArg args) { UserConfigServicePlantBox userConfigServicePlantBox = this.CreatePlantBox(args); args.RelatedPlant.PutLuggage(args.LuggageName, userConfigServicePlantBox); }
public static void Run(string luggageName, IPlantEx relatedPlant) { var args = new InitPlantUCPipelineArg(luggageName, relatedPlant); HatcherGuide <IPipelineManager> .Instance.InvokePipeline("userConfigServiceInitPlant", args); }
public virtual void Process(InitPlantUCPipelineArg args) { args.SettingBox = args.RelatedPlant.MySettingsBox.GetSubBox(this.GetSettingName()); }
public virtual void Process(InitPlantUCPipelineArg args) { UserConfigServicePlantBox userConfigServicePlantBox = this.CreatePlantBox(args); args.RelatedPlant.PutLuggage(args.LuggageName, userConfigServicePlantBox); }
public virtual void Process(InitPlantUCPipelineArg args) { IUserSettingsBuilder settingsBuilder = this.GetSettingBuilder(args.SettingBox); args.PersonalSettingsSteward = new PersonalUserSettingsSteward(settingsBuilder); }
public virtual void Process(InitPlantUCPipelineArg args) { Assert.IsNotNull(args.PersonalSettingsSteward, "Steward cannot be null"); args.Workhorse.StoreAndFillPersonalSettingsSteward(args.PersonalSettingsSteward); }
public virtual void Process(InitPlantUCPipelineArg args) { args.SettingBox = args.RelatedPlant.MySettingsBox.GetSubBox(this.GetSettingName()); }
public virtual void Process(InitPlantUCPipelineArg args) { Assert.IsNotNull(args.PersonalSettingsSteward, "Steward cannot be null"); args.Workhorse.StoreAndFillPersonalSettingsSteward(args.PersonalSettingsSteward); }
public virtual void Process(InitPlantUCPipelineArg args) { IUserSettingsBuilder settingsBuilder = this.GetSettingBuilder(args.SettingBox); args.PersonalSettingsSteward = new PersonalUserSettingsSteward(settingsBuilder); }
public static void Run(string luggageName, IPlantEx relatedPlant) { var args = new InitPlantUCPipelineArg(luggageName, relatedPlant); HatcherGuide<IPipelineManager>.Instance.InvokePipeline("userConfigServiceInitPlant", args); }