From 8ef442c2e8f39307f72bc98d6c79a9b5f09e6d72 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 3 Nov 2016 18:53:02 -0400 Subject: [PATCH] move classes --- Emby.Dlna/DlnaManager.cs | 6 +++-- .../Emby.Server.Implementations.csproj | 7 ++++++ .../ServerManager/ServerManager.cs | 22 +++++++++---------- .../ServerManager/WebSocketConnection.cs | 11 ++++++---- .../TV/SeriesPostScanTask.cs | 11 ++++++---- Emby.Server.Implementations/project.json | 3 ++- .../Connect/ConnectEntryPoint.cs | 10 +++++---- .../EntryPoints/ExternalPortForwarding.cs | 10 +++++---- ...MediaBrowser.Server.Implementations.csproj | 4 ---- .../ApplicationHost.cs | 4 ++-- .../EntryPoints/KeepServerAwake.cs | 2 +- .../MediaBrowser.Server.Startup.Common.csproj | 1 + .../Threading/PeriodicTimer.cs | 6 ++--- 13 files changed, 57 insertions(+), 40 deletions(-) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/ServerManager/ServerManager.cs (93%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/ServerManager/WebSocketConnection.cs (95%) rename {MediaBrowser.Server.Implementations => Emby.Server.Implementations}/TV/SeriesPostScanTask.cs (94%) rename {MediaBrowser.Server.Implementations => MediaBrowser.Server.Startup.Common}/Threading/PeriodicTimer.cs (87%) diff --git a/Emby.Dlna/DlnaManager.cs b/Emby.Dlna/DlnaManager.cs index c5798a5d1b..c348e658cc 100644 --- a/Emby.Dlna/DlnaManager.cs +++ b/Emby.Dlna/DlnaManager.cs @@ -560,17 +560,19 @@ namespace Emby.Dlna ? ImageFormat.Png : ImageFormat.Jpg; + var resource = GetType().Namespace + ".Images." + filename.ToLower(); + #if NET46 return new ImageStream { Format = format, - Stream = GetType().Assembly.GetManifestResourceStream("MediaBrowser.Dlna.Images." + filename.ToLower()) + Stream = GetType().Assembly.GetManifestResourceStream(resource) }; #elif NETSTANDARD1_6 return new ImageStream { Format = format, - Stream = GetType().GetTypeInfo().Assembly.GetManifestResourceStream("MediaBrowser.Dlna.Images." + filename.ToLower()) + Stream = GetType().GetTypeInfo().Assembly.GetManifestResourceStream(resource) }; #endif throw new NotImplementedException(); diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csproj index 152a165e21..7829193c53 100644 --- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj +++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj @@ -131,6 +131,8 @@ + + @@ -178,6 +180,7 @@ + @@ -197,6 +200,10 @@ {7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b} MediaBrowser.Model + + {442b5058-dcaf-4263-bb6a-f21e31120a1b} + MediaBrowser.Providers +