create platform-specific network manager implementation

This commit is contained in:
Luke Pulverenti
2013-10-05 13:13:32 -04:00
parent 6a665e1807
commit 478be44dd6
15 changed files with 369 additions and 303 deletions

View File

@@ -232,6 +232,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
var allRecursiveChildren = user.RootFolder.GetRecursiveChildren(user)
.Select(i => i.Id)
.Distinct()
.ToDictionary(i => i);
return new LibraryUpdateInfo

View File

@@ -1,5 +1,4 @@
using MediaBrowser.Common.Implementations.NetworkManagement;
using MediaBrowser.Common.Net;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Model.Logging;
using System;
@@ -260,7 +259,7 @@ namespace MediaBrowser.Server.Implementations.Udp
throw new ArgumentNullException("remoteEndPoint");
}
await _udpClient.SendAsync(bytes, bytes.Length, new NetworkManager().Parse(remoteEndPoint)).ConfigureAwait(false);
await _udpClient.SendAsync(bytes, bytes.Length, _networkManager.Parse(remoteEndPoint)).ConfigureAwait(false);
_logger.Info("Udp message sent to {0}", remoteEndPoint);
}