aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/Service/BaseService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Dlna/Service/BaseService.cs')
-rw-r--r--Emby.Dlna/Service/BaseService.cs18
1 files changed, 10 insertions, 8 deletions
diff --git a/Emby.Dlna/Service/BaseService.cs b/Emby.Dlna/Service/BaseService.cs
index 2950eede20..40d069e7cd 100644
--- a/Emby.Dlna/Service/BaseService.cs
+++ b/Emby.Dlna/Service/BaseService.cs
@@ -8,31 +8,33 @@ namespace Emby.Dlna.Service
{
public class BaseService : IDlnaEventManager
{
- protected IDlnaEventManager _dlnaEventManager;
- protected IHttpClient HttpClient;
- protected ILogger Logger;
-
protected BaseService(ILogger<BaseService> logger, IHttpClient httpClient)
{
Logger = logger;
HttpClient = httpClient;
- _dlnaEventManager = new DlnaEventManager(logger, HttpClient);
+ EventManager = new DlnaEventManager(logger, HttpClient);
}
+ protected IDlnaEventManager EventManager { get; }
+
+ protected IHttpClient HttpClient { get; }
+
+ protected ILogger Logger { get; }
+
public EventSubscriptionResponse CancelEventSubscription(string subscriptionId)
{
- return _dlnaEventManager.CancelEventSubscription(subscriptionId);
+ return EventManager.CancelEventSubscription(subscriptionId);
}
public EventSubscriptionResponse RenewEventSubscription(string subscriptionId, string notificationType, string timeoutString, string callbackUrl)
{
- return _dlnaEventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);
+ return EventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);
}
public EventSubscriptionResponse CreateEventSubscription(string notificationType, string timeoutString, string callbackUrl)
{
- return _dlnaEventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);
+ return EventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);
}
}
}