Beispiel #1
0
        // Use for action which run on Agent - session
        public static void ExecutePlugInActionOnAgent(Agent agent, IActPluginExecution actPlugin)
        {
            NewPayLoad payload = GeneratePlatformActionPayload(actPlugin, agent);


            // Temp design !!!!!!!!!!!!!!!!!!
            ((Act)actPlugin).AddNewReturnParams = true;  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ???

            // Send the payload to the service
            NewPayLoad RC = agent.GingerNodeProxy.RunAction(payload);



            ParseActionResult(RC, (Act)actPlugin);


            if (actPlugin is IActPluginPostRun ActPluginPostRun)
            {
                ActPluginPostRun.ParseOutput();
            }
        }
Beispiel #2
0
        // Use for action which run on Agent - session
        public static void ExecutePlugInActionOnAgent(Agent agent, IActPluginExecution actPlugin)
        {
            NewPayLoad payload = GeneratePlatformActionPayload(actPlugin, agent);


            // Temp design !!!!!!!!!!!!!!!!!!
            ((Act)actPlugin).AddNewReturnParams = true;  // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ???

            // Send the payload to the service
            NewPayLoad RC = agent.GingerNodeProxy.RunAction(payload);



            ParseActionResult(RC, (Act)actPlugin);


            if (actPlugin is IActPluginPostRun ActPluginPostRun)
            {
                ActPluginPostRun.ParseOutput();
            }
#warning get the follinging from platform in fo

            /*   IPlatformInfo Platforminfo = null;
             *
             * if(Platforminfo is IPlatformPluginPostRun PluginPostrun)
             * {
             *     PluginPostrun.PostExecute(agent, (Act)actPlugin);
             * }
             */

            if (agent.Platform == GingerCoreNET.SolutionRepositoryLib.RepositoryObjectsLib.PlatformsLib.ePlatformType.WebServices)
            {
                Webserviceplatforminfo Platfrominfo = new Webserviceplatforminfo();
                Platfrominfo.PostExecute(agent, (Act)actPlugin);
            }
        }