Esempio n. 1
0
 public override void ExecuteAction(ServiceLib.Classes.ServicePlugin.ExecutionContext context)
 {
     using (var client = new Client(PluginListener.DatabaseConfig))
     {
         context.WriteJsonResponse(this.Serialize(client.GetDbConfigValue("last_change_date")));
     }
 }
Esempio n. 2
0
        public override void ExecuteAction(ServiceLib.Classes.ServicePlugin.ExecutionContext context)
        {
            using (var client = new Client(PluginListener.DatabaseConfig))
            {
                var pluginList = client.GetUseablePlugins(context.ClientVersion, context.Session[Key.ClientChannel].ToString());
                foreach (var plugin in pluginList)
                {
                    plugin.PluginType              = client.GetPluginType(plugin.TypeId);
                    plugin.Author                  = client.GetAuthor(plugin.AuthorId);
                    plugin.PluginVersion           = client.GetVersion(plugin.VersionId);
                    plugin.RequiredBeRemoteVersion =
                        client.GetVersion(plugin.RequiredBeRemoteVersionId);

                    //plugin.Groups = client.GetPluginGroups(plugin.Id);
                    plugin.SearchTerms = client.GetPluginSearchTerms(plugin.Id);
                }

                context.WriteJsonResponse(this.Serialize(pluginList));
            }
        }