Пример #1
0
        public HttpResponseMessage PlugingsStatusGet()
        {
            var dir = DatabasesLandlord.SystemDatabase.Configuration.PluginsDirectory;
            if (Directory.Exists(dir) == false)
                return GetMessageWithObject(new PluginsStatus());

            var plugins = new PluginsStatus { Plugins = Directory.GetFiles(dir, "*.dll").Select(Path.GetFileNameWithoutExtension).ToList() };

            return GetMessageWithObject(plugins);
        }
Пример #2
0
		public override void Respond(IHttpContext context)
		{
			var dir = SystemDatabase.Configuration.PluginsDirectory;
			if (Directory.Exists(dir) == false)
			{
				context.WriteJson(new PluginsStatus());
				return;
			}

			var plugins = new PluginsStatus { Plugins = Directory.GetFiles(dir,"*.dll").Select(Path.GetFileNameWithoutExtension).ToList() };
			

			context.WriteJson(plugins);
		}