public static List <IRareCommand> RunPipelineGetCommands(IPlantEx relatedPlant)
        {
            var args = new InitPlantRareCommandsArgs(relatedPlant);

            HatcherGuide <IPipelineManager> .Instance.InvokePipeline("rareCommandsServiceInitPlant", args);

            return(args.CollectedCommands);
        }
 public virtual void Process(InitPlantRareCommandsArgs args)
 {
     var workHorse = args.RelatedPlant.GetFirstWorkhorseOfType<IProvidesRareCommands>();
       if (workHorse == null)
       {
     args.Abort();
     return;
       }
       args.CollectedCommands = workHorse.GetRareCommands();
 }
        public virtual void Process(InitPlantRareCommandsArgs args)
        {
            var workHorse = args.RelatedPlant.GetFirstWorkhorseOfType <IProvidesRareCommands>();

            if (workHorse == null)
            {
                args.Abort();
                return;
            }
            args.CollectedCommands = workHorse.GetRareCommands();
        }
 public static List<IRareCommand> RunPipelineGetCommands(IPlantEx relatedPlant)
 {
     var args = new InitPlantRareCommandsArgs(relatedPlant);
       HatcherGuide<IPipelineManager>.Instance.InvokePipeline("rareCommandsServiceInitPlant", args);
       return args.CollectedCommands;
 }