aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-20 20:56:24 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-05-20 20:56:24 -0400
commit1774e5b1ac9f809fd97c1d95666fc563afa87914 (patch)
treef0c2c3f84de84def4f9e80d1f187069e4763f496 /MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs
parentad3c30c14535780fcbd11b049603991e8d3cfe9e (diff)
added upnp ConnectionManager.cs
Diffstat (limited to 'MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs')
-rw-r--r--MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs b/MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs
new file mode 100644
index 000000000..842e9380a
--- /dev/null
+++ b/MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs
@@ -0,0 +1,30 @@
+using MediaBrowser.Common.Extensions;
+using MediaBrowser.Controller.Configuration;
+using MediaBrowser.Dlna.Server;
+using MediaBrowser.Dlna.Service;
+using MediaBrowser.Model.Dlna;
+using MediaBrowser.Model.Logging;
+using System.Collections.Generic;
+using System.Globalization;
+
+namespace MediaBrowser.Dlna.ConnectionManager
+{
+ public class ControlHandler : BaseControlHandler
+ {
+ private readonly CultureInfo _usCulture = new CultureInfo("en-US");
+ private readonly DeviceProfile _profile;
+
+ public ControlHandler(ILogger logger, DeviceProfile profile, IServerConfigurationManager config)
+ : base(config, logger)
+ {
+ _profile = profile;
+ }
+
+ protected override IEnumerable<KeyValuePair<string, string>> GetResult(string methodName, Headers methodParams)
+ {
+ var deviceId = "test";
+
+ throw new ResourceNotFoundException("Unexpected control request name: " + methodName);
+ }
+ }
+}