Ejemplo n.º 1
0
        private PluginQualifiedName ParsePluginLocate(XmlNode thePluginNode)
        {
            string locator = thePluginNode.Attributes["locate"].Value.Trim();
            PluginQualifiedName theLocate = new PluginQualifiedName();

            if (locator != null)
            {
                string locateValue = locator.Trim();

                theLocate.LoadProtocol = (PluginLoadProtocol)Enum.Parse(
                    typeof(PluginLoadProtocol), locateValue.Split(':')[0].Trim(), true);
                string[] classNames = locateValue.Substring(locateValue.IndexOf("://") + 3).Split(',');
                theLocate.ClassName = classNames[0].Trim();
                if (classNames.Length > 1)
                {
                    theLocate.AssemblyPath = classNames[1].Trim();
                }
            }
            return(theLocate);
        }
Ejemplo n.º 2
0
        private PluginQualifiedName ParsePluginLocate(XmlNode thePluginNode)
        {
            string locator = thePluginNode.Attributes["locate"].Value.Trim();
            PluginQualifiedName theLocate = new PluginQualifiedName();
            if (locator != null)
            {
                string locateValue = locator.Trim();

                theLocate.LoadProtocol = (PluginLoadProtocol)Enum.Parse(
                    typeof(PluginLoadProtocol), locateValue.Split(':')[0].Trim(), true);
                string[] classNames = locateValue.Substring(locateValue.IndexOf("://") + 3).Split(',');
                theLocate.ClassName = classNames[0].Trim();
                if (classNames.Length > 1)
                    theLocate.AssemblyPath = classNames[1].Trim();
            }
            return theLocate;
        }