Ejemplo n.º 1
0
        public Process Run(System.Web.UI.Page httpPage)
        {
            Plugins = new PluginServices();
            Process process = new Process(httpPage, Plugins);

            Plugins.InvokeAll("system", "init");
            //? lay tu cache ra - neu k co cache thi lay o dau ra?
            XmlDocument xmlDocument = process.Cache["process"] as XmlDocument;
            XmlNode     xmlNode     = xmlDocument.DocumentElement;

            string[] args = process.CurrentProcess.Trim('/').Split('/');

            LoopThroughProcess(args, xmlNode, process);

            Plugins.InvokeAll("system", "exit");
            Plugins.ClosePlugins();

            return(process);
        }
Ejemplo n.º 2
0
        public Process Run(Page httpPage)
        {
            _plugins = new PluginServices();
            Process process = new Process(httpPage, _plugins);

            _plugins.InvokeAll("system", "init");

            XmlDocument xmlDocument = process.Cache["process"] as XmlDocument;

            if (xmlDocument != null)
            {
                XmlNode  xmlNode = xmlDocument.DocumentElement;
                string[] args    = process.CurrentProcess.Trim('/').Split('/');

                LoopThroughProcess(args, xmlNode, process);
            }

            _plugins.InvokeAll("system", "exit");
            _plugins.ClosePlugins();

            return(process);
        }