diff options
| author | David <daullmer@gmail.com> | 2020-08-20 17:01:04 +0200 |
|---|---|---|
| committer | David <daullmer@gmail.com> | 2020-08-20 17:08:33 +0200 |
| commit | ca2b36bdb05c3757378ea0e8a4551befc2668bff (patch) | |
| tree | 5255a70e0f2708645654aecec5d2bbb3cb2eea6e /Emby.Dlna/Eventing | |
| parent | 250e351613e0eed7977c8cdad4a9078927458feb (diff) | |
Reduce warnings in Emby.Dlna
Diffstat (limited to 'Emby.Dlna/Eventing')
| -rw-r--r-- | Emby.Dlna/Eventing/EventManager.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Emby.Dlna/Eventing/EventManager.cs b/Emby.Dlna/Eventing/EventManager.cs index 7d02f5e960..cc8e0ae06b 100644 --- a/Emby.Dlna/Eventing/EventManager.cs +++ b/Emby.Dlna/Eventing/EventManager.cs @@ -22,6 +22,8 @@ namespace Emby.Dlna.Eventing private readonly ILogger _logger; private readonly IHttpClient _httpClient; + private readonly CultureInfo _usCulture = new CultureInfo("en-US"); + public EventManager(ILogger logger, IHttpClient httpClient) { _httpClient = httpClient; @@ -58,7 +60,8 @@ namespace Emby.Dlna.Eventing var timeout = ParseTimeout(requestedTimeoutString) ?? 300; var id = "uuid:" + Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture); - _logger.LogDebug("Creating event subscription for {0} with timeout of {1} to {2}", + _logger.LogDebug( + "Creating event subscription for {0} with timeout of {1} to {2}", notificationType, timeout, callbackUrl); @@ -94,7 +97,7 @@ namespace Emby.Dlna.Eventing { _logger.LogDebug("Cancelling event subscription {0}", subscriptionId); - _subscriptions.TryRemove(subscriptionId, out EventSubscription sub); + _subscriptions.TryRemove(subscriptionId, out _); return new EventSubscriptionResponse { @@ -103,7 +106,6 @@ namespace Emby.Dlna.Eventing }; } - private readonly CultureInfo _usCulture = new CultureInfo("en-US"); private EventSubscriptionResponse GetEventSubscriptionResponse(string subscriptionId, string requestedTimeoutString, int timeoutSeconds) { var response = new EventSubscriptionResponse |
