diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-08 10:52:13 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-09-08 10:52:13 -0400 |
| commit | 93b42641d23cf675b74d4bdaf6d6ece07fbb8900 (patch) | |
| tree | d946a224a319e2da1cf266f027e23f19ac861faa /MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs | |
| parent | a95e868300d904eaeb8fb65f234645e502699df5 (diff) | |
Switched to MEF to register http handlers
Diffstat (limited to 'MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs')
| -rw-r--r-- | MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs b/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs index bf06cbdb0..6dafd4170 100644 --- a/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs +++ b/MediaBrowser.Api/HttpHandlers/PluginConfigurationHandler.cs @@ -1,15 +1,23 @@ -using System;
-using System.Linq;
-using System.Threading.Tasks;
-using MediaBrowser.Common.Net.Handlers;
+using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Controller;
using MediaBrowser.Model.Plugins;
+using System;
+using System.ComponentModel.Composition;
+using System.Linq;
+using System.Net;
+using System.Threading.Tasks;
namespace MediaBrowser.Api.HttpHandlers
{
+ [Export(typeof(BaseHandler))]
public class PluginConfigurationHandler : BaseSerializationHandler<BasePluginConfiguration>
{
+ public override bool HandlesRequest(HttpListenerRequest request)
+ {
+ return ApiService.IsApiUrlMatch("pluginconfiguration", request);
+ }
+
private BasePlugin _Plugin = null;
private BasePlugin Plugin
{
|
