protected PluginItemCollection GetPlugins(string baseName)
        {
            PluginItemCollection items = new PluginItemCollection();
            XmlNodeList          list  = (pluginCache.Get(this.IndexCacheKey) as XmlDocument).SelectNodes("//" + baseName + "/item");

            if ((list != null) && (list.Count > 0))
            {
                foreach (XmlNode node in list)
                {
                    PluginItem item = new PluginItem {
                        FullName         = node.Attributes["identity"].Value,
                        DisplayName      = node.Attributes["name"].Value,
                        Logo             = node.Attributes["logo"].Value,
                        ShortDescription = node.Attributes["shortDescription"].Value,
                        Description      = node.Attributes["description"].Value
                    };
                    items.Add(item);
                }
            }
            return(items);
        }
Beispiel #2
0
        protected PluginItemCollection GetPlugins(string baseName)
        {
            PluginItemCollection pluginItemCollection = new PluginItemCollection();
            XmlDocument          xmlDocument          = PluginContainer.pluginCache.Get(this.IndexCacheKey) as XmlDocument;
            XmlNodeList          xmlNodeList          = xmlDocument.SelectNodes("//" + baseName + "/item");

            if (xmlNodeList != null && xmlNodeList.Count > 0)
            {
                foreach (XmlNode xmlNode in xmlNodeList)
                {
                    PluginItem item = new PluginItem
                    {
                        FullName         = xmlNode.Attributes["identity"].Value,
                        DisplayName      = xmlNode.Attributes["name"].Value,
                        Logo             = xmlNode.Attributes["logo"].Value,
                        ShortDescription = xmlNode.Attributes["shortDescription"].Value,
                        Description      = xmlNode.Attributes["description"].Value
                    };
                    pluginItemCollection.Add(item);
                }
            }
            return(pluginItemCollection);
        }
Beispiel #3
0
        protected PluginItemCollection GetPlugins(string baseName)
        {
            PluginItemCollection pluginItemCollection = new PluginItemCollection();
            XmlDocument          xmlDocument          = PluginContainer.pluginCache.Get(this.IndexCacheKey) as XmlDocument;
            XmlNodeList          xmlNodeList          = xmlDocument.SelectNodes("//" + baseName + "/item");

            Globals.AppendLog(new Dictionary <string, string>(), this.IndexCacheKey + ":" + xmlDocument.ToString(), "", "", "/log/SMSSender.txt");
            if (xmlNodeList != null && xmlNodeList.Count > 0)
            {
                foreach (XmlNode item2 in xmlNodeList)
                {
                    PluginItem pluginItem = new PluginItem();
                    pluginItem.FullName         = item2.Attributes["identity"].Value;
                    pluginItem.DisplayName      = item2.Attributes["name"].Value;
                    pluginItem.Logo             = item2.Attributes["logo"].Value;
                    pluginItem.ShortDescription = item2.Attributes["shortDescription"].Value;
                    pluginItem.Description      = item2.Attributes["description"].Value;
                    PluginItem item = pluginItem;
                    pluginItemCollection.Add(item);
                }
            }
            Globals.AppendLog(new Dictionary <string, string>(), baseName + ":" + pluginItemCollection.ToJsonString(), "", "", "/log/SMSSender.txt");
            return(pluginItemCollection);
        }
Beispiel #4
0
 protected PluginItemCollection GetPlugins(string baseName)
 {
     PluginItemCollection items = new PluginItemCollection();
     XmlNodeList list = (pluginCache.Get(this.IndexCacheKey) as XmlDocument).SelectNodes("//" + baseName + "/item");
     if ((list != null) && (list.Count > 0))
     {
         foreach (XmlNode node in list)
         {
             PluginItem item2 = new PluginItem
             {
                 FullName = node.Attributes["identity"].Value,
                 DisplayName = node.Attributes["name"].Value,
                 Logo = node.Attributes["logo"].Value,
                 ShortDescription = node.Attributes["shortDescription"].Value,
                 Description = node.Attributes["description"].Value
             };
             PluginItem item = item2;
             items.Add(item);
         }
     }
     return items;
 }