aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/Service/BaseService.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-08-20 17:34:40 -0400
committerGitHub <noreply@github.com>2020-08-20 17:34:40 -0400
commitcd49beb7add2ca2458b6a215bfcc258de1a68b91 (patch)
treee5278ffec73bc8f9bae9b11eecbdeebc89c54c51 /Emby.Dlna/Service/BaseService.cs
parentac58d07e0e2cf5caa641803f25ad4ecfa997ec51 (diff)
parent170e434f92142a8e4c17d3a5eec0bd9c2d6a0037 (diff)
Merge pull request #3947 from Bond-009/warn25
Fix all warnings in Emby.Dlna
Diffstat (limited to 'Emby.Dlna/Service/BaseService.cs')
-rw-r--r--Emby.Dlna/Service/BaseService.cs20
1 files changed, 11 insertions, 9 deletions
diff --git a/Emby.Dlna/Service/BaseService.cs b/Emby.Dlna/Service/BaseService.cs
index 88c62f86c..3ad1ea9e0 100644
--- a/Emby.Dlna/Service/BaseService.cs
+++ b/Emby.Dlna/Service/BaseService.cs
@@ -8,31 +8,33 @@ namespace Emby.Dlna.Service
{
public class BaseService : IEventManager
{
- protected IEventManager _eventManager;
- protected IHttpClient _httpClient;
- protected ILogger Logger;
-
protected BaseService(ILogger<BaseService> logger, IHttpClient httpClient)
{
Logger = logger;
- _httpClient = httpClient;
+ HttpClient = httpClient;
- _eventManager = new EventManager(logger, _httpClient);
+ EventManager = new EventManager(logger, HttpClient);
}
+ protected IEventManager EventManager { get; }
+
+ protected IHttpClient HttpClient { get; }
+
+ protected ILogger Logger { get; }
+
public EventSubscriptionResponse CancelEventSubscription(string subscriptionId)
{
- return _eventManager.CancelEventSubscription(subscriptionId);
+ return EventManager.CancelEventSubscription(subscriptionId);
}
public EventSubscriptionResponse RenewEventSubscription(string subscriptionId, string notificationType, string timeoutString, string callbackUrl)
{
- return _eventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);
+ return EventManager.RenewEventSubscription(subscriptionId, notificationType, timeoutString, callbackUrl);
}
public EventSubscriptionResponse CreateEventSubscription(string notificationType, string timeoutString, string callbackUrl)
{
- return _eventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);
+ return EventManager.CreateEventSubscription(notificationType, timeoutString, callbackUrl);
}
}
}