diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-29 23:31:35 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-07-29 23:31:35 -0400 |
| commit | 51e964dae394ae4a211482d562dbc28e79c00c3c (patch) | |
| tree | 8cc6f351eeb9ceb2343cd818e84b26a94f072a62 /MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs | |
| parent | 063675bb07f78f99738a3ada061f3e2c16c9cda0 (diff) | |
support channels with dlna
Diffstat (limited to 'MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs b/MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs index 9191e0bea..3b4379e37 100644 --- a/MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs +++ b/MediaBrowser.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs @@ -4,6 +4,7 @@ using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Plugins; using MediaBrowser.Model.Logging; +using MediaBrowser.Model.Serialization; using MediaBrowser.Server.Implementations.Udp; using System.Net.Sockets; @@ -37,6 +38,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints /// </summary> private readonly IHttpServer _httpServer; private readonly IServerApplicationHost _appHost; + private readonly IJsonSerializer _json; public const int PortNumber = 7359; @@ -47,13 +49,14 @@ namespace MediaBrowser.Server.Implementations.EntryPoints /// <param name="networkManager">The network manager.</param> /// <param name="serverConfigurationManager">The server configuration manager.</param> /// <param name="httpServer">The HTTP server.</param> - public UdpServerEntryPoint(ILogger logger, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager, IHttpServer httpServer, IServerApplicationHost appHost) + public UdpServerEntryPoint(ILogger logger, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager, IHttpServer httpServer, IServerApplicationHost appHost, IJsonSerializer json) { _logger = logger; _networkManager = networkManager; _serverConfigurationManager = serverConfigurationManager; _httpServer = httpServer; _appHost = appHost; + _json = json; } /// <summary> @@ -61,7 +64,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints /// </summary> public void Run() { - var udpServer = new UdpServer(_logger, _networkManager, _serverConfigurationManager, _httpServer, _appHost); + var udpServer = new UdpServer(_logger, _networkManager, _serverConfigurationManager, _httpServer, _appHost, _json); try { |
