diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-20 20:56:24 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-20 20:56:24 -0400 |
| commit | 1774e5b1ac9f809fd97c1d95666fc563afa87914 (patch) | |
| tree | f0c2c3f84de84def4f9e80d1f187069e4763f496 /MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs | |
| parent | ad3c30c14535780fcbd11b049603991e8d3cfe9e (diff) | |
added upnp ConnectionManager.cs
Diffstat (limited to 'MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs')
| -rw-r--r-- | MediaBrowser.Dlna/ConnectionManager/ControlHandler.cs | 30 |
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); + } + } +} |
