The Free Software Media System - Server Backend & API
Rename IEventManager to IDlnaEventManager
Patrick Barronda9bcc5fb3a9
diff --git a/Emby.Dlna/Emby.Dlna.csproj b/Emby.Dlna/Emby.Dlna.csprojindex 42a5f95c14..1eaa16f6b9 100644--- a/Emby.Dlna/Emby.Dlna.csproj+++ b/Emby.Dlna/Emby.Dlna.csproj@@ -20,7 +20,7 @@<TargetFramework>netstandard2.1</TargetFramework><GenerateAssemblyInfo>false</GenerateAssemblyInfo><GenerateDocumentationFile>true</GenerateDocumentationFile>- <TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release'" >true</TreatWarningsAsErrors>+ <TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release'">true</TreatWarningsAsErrors></PropertyGroup><!-- Code Analyzers-->diff --git a/Emby.Dlna/Eventing/EventManager.cs b/Emby.Dlna/Eventing/DlnaEventManager.cssimilarity index 98%rename from Emby.Dlna/Eventing/EventManager.csrename to Emby.Dlna/Eventing/DlnaEventManager.csindex 7d02f5e960..7822952907 100644--- a/Emby.Dlna/Eventing/EventManager.cs+++ b/Emby.Dlna/Eventing/DlnaEventManager.cs@@ -14,7 +14,7 @@ using Microsoft.Extensions.Logging;namespace Emby.Dlna.Eventing{- public class EventManager : IEventManager+ public class DlnaEventManager : IDlnaEventManager{private readonly ConcurrentDictionary<string, EventSubscription> _subscriptions =new ConcurrentDictionary<string, EventSubscription>(StringComparer.OrdinalIgnoreCase);@@ -22,7 +22,7 @@ namespace Emby.Dlna.Eventingprivate readonly ILogger _logger;private readonly IHttpClient _httpClient;- public EventManager(ILogger logger, IHttpClient httpClient)+ public DlnaEventManager(ILogger logger, IHttpClient httpClient){_httpClient = httpClient;_logger = logger;diff --git a/Emby.Dlna/IConnectionManager.cs b/Emby.Dlna/IConnectionManager.csindex 7b4a33a98c..9f643a9e64 100644--- a/Emby.Dlna/IConnectionManager.cs+++ b/Emby.Dlna/IConnectionManager.cs@@ -2,7 +2,7 @@namespace Emby.Dlna{- public interface IConnectionManager : IEventManager, IUpnpService+ public interface IConnectionManager : IDlnaEventManager, IUpnpService{}}diff --git a/Emby.Dlna/IContentDirectory.cs b/Emby.Dlna/IContentDirectory.csindex 83ef09c665..10f4d63866 100644--- a/Emby.Dlna/IContentDirectory.cs+++ b/Emby.Dlna/IContentDirectory.cs@@ -2,7 +2,7 @@namespace Emby.Dlna{- public interface IContentDirectory : IEventManager, IUpnpService+ public interface IContentDirectory : IDlnaEventManager, IUpnpService{}}diff --git a/Emby.Dlna/IEventManager.cs b/Emby.Dlna/IDlnaEventManager.cssimilarity index 95%rename from Emby.Dlna/IEventManager.csrename to Emby.Dlna/IDlnaEventManager.csindex 2872033892..b535c3bdeb 100644--- a/Emby.Dlna/IEventManager.cs+++ b/Emby.Dlna/IDlnaEventManager.cs@@ -2,7 +2,7 @@namespace Emby.Dlna{- public interface IEventManager+ public interface IDlnaEventManager{/// <summary>/// Cancels the event subscription.diff --git a/Emby.Dlna/IMediaReceiverRegistrar.cs b/Emby.Dlna/IMediaReceiverRegistrar.csindex b0376b6a99..43e934b53a 100644--- a/Emby.Dlna/IMediaReceiverRegistrar.cs+++ b/Emby.Dlna/IMediaReceiverRegistrar.cs@@ -2,7 +2,7 @@namespace Emby.Dlna{- public interface IMediaReceiverRegistrar : IEventManager, IUpnpService+ public interface IMediaReceiverRegistrar : IDlnaEventManager, IUpnpService{}}diff --git a/Emby.Dlna/Service/BaseService.cs b/Emby.Dlna/Service/BaseService.csindex 8794ec26a8..2950eede20 100644--- a/Emby.Dlna/Service/BaseService.cs+++ b/Emby.Dlna/Service/BaseService.cs@@ -6,9 +6,9 @@ using Microsoft.Extensions.Logging;namespace Emby.Dlna.Service{- public class BaseService : IEventManager+ public class BaseService : IDlnaEventManager{- protected IEventManager EventManager;+ protected IDlnaEventManager _dlnaEventManager;protected IHttpClient HttpClient;protected ILogger Logger;@@ -17,22 +17,22 @@ namespace Emby.Dlna.ServiceLogger = logger;HttpClient = httpClient;- EventManager = new EventManager(logger, HttpClient);+ _dlnaEventManager = new DlnaEventManager(logger, HttpClient);}public EventSubscriptionResponse CancelEventSubscription(string subscriptionId){- return EventManager.CancelEventSubscription(subscriptionId);+ return _dlnaEventManager.CancelEventSubscription(subscriptionId);}public EventSubscriptionResponse RenewEventSubscription(string subscriptionId, string notificationType, string timeoutString, string callbackUrl){- return EventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);+ return _dlnaEventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);}public EventSubscriptionResponse CreateEventSubscription(string notificationType, string timeoutString, string callbackUrl){- return EventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);+ return _dlnaEventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);}}}diff --git a/Jellyfin.Api/Controllers/DlnaServerController.cs b/Jellyfin.Api/Controllers/DlnaServerController.csindex ef507f2ed6..d5cfcdf3f9 100644--- a/Jellyfin.Api/Controllers/DlnaServerController.cs+++ b/Jellyfin.Api/Controllers/DlnaServerController.cs@@ -230,7 +230,7 @@ namespace Jellyfin.Api.Controllers});}- private EventSubscriptionResponse ProcessEventRequest(IEventManager eventManager)+ private EventSubscriptionResponse ProcessEventRequest(IDlnaEventManager dlnaEventManager){var subscriptionId = Request.Headers["SID"];if (string.Equals(Request.Method, "subscribe", StringComparison.OrdinalIgnoreCase))@@ -241,17 +241,17 @@ namespace Jellyfin.Api.Controllersif (string.IsNullOrEmpty(notificationType)){- return eventManager.RenewEventSubscription(+ return dlnaEventManager.RenewEventSubscription(subscriptionId,notificationType,timeoutString,callback);}- return eventManager.CreateEventSubscription(notificationType, timeoutString, callback);+ return dlnaEventManager.CreateEventSubscription(notificationType, timeoutString, callback);}- return eventManager.CancelEventSubscription(subscriptionId);+ return dlnaEventManager.CancelEventSubscription(subscriptionId);}}}