Beispiel #1
0
        public bool IsActive(IPCAgentPlugin plugin)
        {
            bool    blnIsActive = false;
            XmlNode xPlugin     = this._xDoc.SelectSingleNode("//Plugin[@name='" + plugin.GetType().FullName + "']");

            if (xPlugin != null)
            {
                blnIsActive = Convert.ToBoolean(xPlugin.InnerText);
            }
            return(blnIsActive);
        }
Beispiel #2
0
        public bool IsPartOfInterface(IPCAgentPlugin plugin, Type interfaceType)
        {
            XmlNode xPlugin = this._xDoc.SelectSingleNode("//Interface[@name='" + interfaceType.FullName + "']/Plugin[@name='" + plugin.GetType().FullName + "']");

            return(xPlugin != null);
        }