The Free Software Media System - Server Backend & API
Visual Studio Reformat: Emby.Server.Implementations Part De-H
Erwin de Haanc5c7a3c4ee76
diff --git a/Emby.Server.Implementations/Devices/DeviceManager.cs b/Emby.Server.Implementations/Devices/DeviceManager.csindex c72334577e..f21daab62e 100644--- a/Emby.Server.Implementations/Devices/DeviceManager.cs+++ b/Emby.Server.Implementations/Devices/DeviceManager.cs@@ -1,30 +1,29 @@-using MediaBrowser.Common.Configuration;-using MediaBrowser.Common.Net;-using MediaBrowser.Controller.Devices;-using MediaBrowser.Controller.Library;-using MediaBrowser.Model.Devices;-using MediaBrowser.Model.Events;-using MediaBrowser.Model.Extensions;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Net;-using MediaBrowser.Model.Querying;-using MediaBrowser.Model.Session;-using MediaBrowser.Model.Users;using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Threading.Tasks;-using MediaBrowser.Model.IO;+using MediaBrowser.Common.Configuration;+using MediaBrowser.Common.Extensions;+using MediaBrowser.Common.Net;using MediaBrowser.Controller.Configuration;+using MediaBrowser.Controller.Devices;using MediaBrowser.Controller.Entities;-using MediaBrowser.Model.Entities;-using MediaBrowser.Model.Configuration;+using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Plugins;-using MediaBrowser.Model.Globalization;using MediaBrowser.Controller.Security;+using MediaBrowser.Model.Configuration;+using MediaBrowser.Model.Devices;+using MediaBrowser.Model.Entities;+using MediaBrowser.Model.Events;+using MediaBrowser.Model.Globalization;+using MediaBrowser.Model.IO;+using MediaBrowser.Model.Net;+using MediaBrowser.Model.Querying;using MediaBrowser.Model.Serialization;-using MediaBrowser.Common.Extensions;+using MediaBrowser.Model.Session;+using MediaBrowser.Model.Users;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Devices{diff --git a/Emby.Server.Implementations/Diagnostics/CommonProcess.cs b/Emby.Server.Implementations/Diagnostics/CommonProcess.csindex 99871a3c6a..dbde127034 100644--- a/Emby.Server.Implementations/Diagnostics/CommonProcess.cs+++ b/Emby.Server.Implementations/Diagnostics/CommonProcess.cs@@ -1,9 +1,9 @@using System;using System.Diagnostics;using System.IO;+using System.Threading;using System.Threading.Tasks;using MediaBrowser.Model.Diagnostics;-using System.Threading;namespace Emby.Server.Implementations.Diagnostics{diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.csindex 3d519f35dd..68bff962fd 100644--- a/Emby.Server.Implementations/Dto/DtoService.cs+++ b/Emby.Server.Implementations/Dto/DtoService.cs@@ -1,3 +1,8 @@+using System;+using System.Collections.Generic;+using System.IO;+using System.Linq;+using System.Threading.Tasks;using MediaBrowser.Common;using MediaBrowser.Controller.Channels;using MediaBrowser.Controller.Configuration;@@ -11,21 +16,15 @@ using MediaBrowser.Controller.Entities.TV;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.LiveTv;using MediaBrowser.Controller.Persistence;+using MediaBrowser.Controller.Playlists;using MediaBrowser.Controller.Providers;-using MediaBrowser.Controller.Sync;using MediaBrowser.Model.Drawing;using MediaBrowser.Model.Dto;using MediaBrowser.Model.Entities;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Querying;-using System;-using System.Collections.Generic;-using System.IO;-using System.Linq;-using System.Threading.Tasks;-using MediaBrowser.Model.IO;using MediaBrowser.Model.Extensions;-using MediaBrowser.Controller.Playlists;+using MediaBrowser.Model.IO;+using MediaBrowser.Model.Querying;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.Dto{diff --git a/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs b/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.csindex a0947c87d5..8a450a5fe7 100644--- a/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs+++ b/Emby.Server.Implementations/EntryPoints/AutomaticRestartEntryPoint.cs@@ -1,16 +1,16 @@-using MediaBrowser.Controller;-using MediaBrowser.Controller.Configuration;-using MediaBrowser.Controller.Plugins;-using MediaBrowser.Controller.Session;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Tasks;-using System;+using System;using System.Linq;using System.Threading;using System.Threading.Tasks;+using MediaBrowser.Controller;+using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.LiveTv;+using MediaBrowser.Controller.Plugins;+using MediaBrowser.Controller.Session;using MediaBrowser.Model.LiveTv;+using MediaBrowser.Model.Tasks;using MediaBrowser.Model.Threading;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs b/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.csindex 6c658a695f..382861635b 100644--- a/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs+++ b/Emby.Server.Implementations/EntryPoints/ExternalPortForwarding.cs@@ -2,6 +2,7 @@ using System;using System.Collections.Generic;using System.Globalization;using System.Net;+using System.Threading;using System.Threading.Tasks;using MediaBrowser.Common.Net;using MediaBrowser.Controller;@@ -9,10 +10,9 @@ using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.Plugins;using MediaBrowser.Model.Dlna;using MediaBrowser.Model.Events;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Threading;+using Microsoft.Extensions.Logging;using Mono.Nat;-using System.Threading;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs b/Emby.Server.Implementations/EntryPoints/LibraryChangedNotifier.csindex a5c9072132..bcfcc339ca 100644--- a/Emby.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs+++ b/Emby.Server.Implementations/EntryPoints/LibraryChangedNotifier.cs@@ -1,21 +1,20 @@-using MediaBrowser.Controller.Entities;-using MediaBrowser.Controller.Library;-using MediaBrowser.Controller.Plugins;-using MediaBrowser.Controller.Session;-using MediaBrowser.Model.Entities;-using Microsoft.Extensions.Logging;using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Threading;using MediaBrowser.Controller.Channels;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Entities.Audio;-using MediaBrowser.Controller.Entities.TV;+using MediaBrowser.Controller.Library;+using MediaBrowser.Controller.Plugins;using MediaBrowser.Controller.Providers;+using MediaBrowser.Controller.Session;+using MediaBrowser.Model.Entities;using MediaBrowser.Model.Events;using MediaBrowser.Model.Extensions;using MediaBrowser.Model.Threading;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EntryPoints/RefreshUsersMetadata.cs b/Emby.Server.Implementations/EntryPoints/RefreshUsersMetadata.csindex f0b834ccb4..7d0ca3552d 100644--- a/Emby.Server.Implementations/EntryPoints/RefreshUsersMetadata.cs+++ b/Emby.Server.Implementations/EntryPoints/RefreshUsersMetadata.cs@@ -1,12 +1,12 @@using System;-using MediaBrowser.Controller.Library;-using System.Threading;-using MediaBrowser.Model.Tasks;using System.Collections.Generic;using System.Linq;+using System.Threading;using System.Threading.Tasks;+using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Providers;using MediaBrowser.Model.IO;+using MediaBrowser.Model.Tasks;using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.EntryPointsdiff --git a/Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs b/Emby.Server.Implementations/EntryPoints/ServerEventNotifier.csindex 72dcabab38..4e357bbbc9 100644--- a/Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs+++ b/Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs@@ -1,17 +1,14 @@-using MediaBrowser.Common.Plugins;+using System;+using System.Collections.Generic;+using System.Threading;+using MediaBrowser.Common.Plugins;using MediaBrowser.Common.Updates;using MediaBrowser.Controller;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;-using MediaBrowser.Controller.Net;using MediaBrowser.Controller.Plugins;using MediaBrowser.Controller.Session;-using MediaBrowser.Controller.Sync;using MediaBrowser.Model.Events;-using MediaBrowser.Model.Sync;-using System;-using System.Collections.Generic;-using System.Threading;using MediaBrowser.Model.Tasks;namespace Emby.Server.Implementations.EntryPointsdiff --git a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs b/Emby.Server.Implementations/EntryPoints/StartupWizard.csindex ffd98bf787..3afec4296c 100644--- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs+++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs@@ -1,8 +1,8 @@using Emby.Server.Implementations.Browser;using MediaBrowser.Controller;+using MediaBrowser.Controller.Configuration;using MediaBrowser.Controller.Plugins;using Microsoft.Extensions.Logging;-using MediaBrowser.Controller.Configuration;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EntryPoints/SystemEvents.cs b/Emby.Server.Implementations/EntryPoints/SystemEvents.csindex e27de89673..2f9cd044fd 100644--- a/Emby.Server.Implementations/EntryPoints/SystemEvents.cs+++ b/Emby.Server.Implementations/EntryPoints/SystemEvents.cs@@ -1,12 +1,7 @@using System;-using System.Collections.Generic;-using System.Linq;-using System.Text;-using System.Threading.Tasks;-using MediaBrowser.Model.System;-using MediaBrowser.Controller.Plugins;-using MediaBrowser.Common;using MediaBrowser.Controller;+using MediaBrowser.Controller.Plugins;+using MediaBrowser.Model.System;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs b/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.csindex 730ced0554..13898a7b9e 100644--- a/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs+++ b/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs@@ -1,10 +1,10 @@using System;+using Emby.Server.Implementations.Udp;using MediaBrowser.Controller;using MediaBrowser.Controller.Plugins;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Serialization;-using Emby.Server.Implementations.Udp;using MediaBrowser.Model.Net;+using MediaBrowser.Model.Serialization;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.csindex 58309ea1c7..4c448ba347 100644--- a/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs+++ b/Emby.Server.Implementations/EntryPoints/UserDataChangeNotifier.cs@@ -1,17 +1,17 @@-using MediaBrowser.Controller.Entities;-using MediaBrowser.Controller.Library;-using MediaBrowser.Controller.Plugins;-using MediaBrowser.Controller.Session;-using MediaBrowser.Model.Entities;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Session;-using System;+using System;using System.Collections.Generic;using System.Linq;using System.Threading;using System.Threading.Tasks;+using MediaBrowser.Controller.Entities;+using MediaBrowser.Controller.Library;+using MediaBrowser.Controller.Plugins;+using MediaBrowser.Controller.Session;+using MediaBrowser.Model.Entities;using MediaBrowser.Model.Extensions;+using MediaBrowser.Model.Session;using MediaBrowser.Model.Threading;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.EntryPoints{diff --git a/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs b/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.csindex 24a3456c45..b397903396 100644--- a/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs+++ b/Emby.Server.Implementations/EnvironmentInfo/EnvironmentInfo.cs@@ -1,6 +1,6 @@using System;-using MediaBrowser.Model.System;using System.Runtime.InteropServices;+using MediaBrowser.Model.System;namespace Emby.Server.Implementations.EnvironmentInfo{diff --git a/Emby.Server.Implementations/FFMpeg/FFMpegLoader.cs b/Emby.Server.Implementations/FFMpeg/FFMpegLoader.csindex 83e3cb7206..3c87f72f7f 100644--- a/Emby.Server.Implementations/FFMpeg/FFMpegLoader.cs+++ b/Emby.Server.Implementations/FFMpeg/FFMpegLoader.cs@@ -1,11 +1,11 @@-using MediaBrowser.Common.Configuration;-using MediaBrowser.Common.Net;-using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;-using System;+using System;using System.Collections.Generic;using System.IO;using System.Linq;+using MediaBrowser.Common.Configuration;+using MediaBrowser.Common.Net;+using MediaBrowser.Model.IO;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.FFMpeg{diff --git a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.csindex 6494f0c6f2..72828f0d4b 100644--- a/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs+++ b/Emby.Server.Implementations/HttpClientManager/HttpClientManager.cs@@ -13,8 +13,8 @@ using MediaBrowser.Common.Configuration;using MediaBrowser.Common.Extensions;using MediaBrowser.Common.Net;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Net;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpClientManager{@@ -541,7 +541,7 @@ namespace Emby.Server.Implementations.HttpClientManagerif (options.Progress == null){- throw new ArgumentException("Options did not have a Progress value.",nameof(options));+ throw new ArgumentException("Options did not have a Progress value.", nameof(options));}options.CancellationToken.ThrowIfCancellationRequested();diff --git a/Emby.Server.Implementations/HttpServer/FileWriter.cs b/Emby.Server.Implementations/HttpServer/FileWriter.csindex 5684329022..247299da65 100644--- a/Emby.Server.Implementations/HttpServer/FileWriter.cs+++ b/Emby.Server.Implementations/HttpServer/FileWriter.cs@@ -1,13 +1,13 @@using System;using System.Collections.Generic;using System.Globalization;+using System.Linq;using System.Net;using System.Threading;using System.Threading.Tasks;using MediaBrowser.Model.IO;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Services;-using System.Linq;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.csindex d51563d513..784b397353 100644--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -1,27 +1,27 @@-using MediaBrowser.Common.Extensions;-using MediaBrowser.Controller.Configuration;-using MediaBrowser.Controller.Net;-using Microsoft.Extensions.Logging;using System;using System.Collections.Generic;using System.Globalization;using System.IO;using System.Linq;+using System.Net.Sockets;using System.Reflection;using System.Text;using System.Threading;using System.Threading.Tasks;+using Emby.Server.Implementations.Net;using Emby.Server.Implementations.Services;+using MediaBrowser.Common.Extensions;using MediaBrowser.Common.Net;using MediaBrowser.Common.Security;using MediaBrowser.Controller;+using MediaBrowser.Controller.Configuration;+using MediaBrowser.Controller.Net;+using MediaBrowser.Model.Events;using MediaBrowser.Model.Extensions;using MediaBrowser.Model.Serialization;using MediaBrowser.Model.Services;using MediaBrowser.Model.Text;-using System.Net.Sockets;-using Emby.Server.Implementations.Net;-using MediaBrowser.Model.Events;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.csindex e6dbcf65de..ce9dc9ad9c 100644--- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs+++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs@@ -1,7 +1,3 @@-using MediaBrowser.Common.Extensions;-using MediaBrowser.Controller.Net;-using Microsoft.Extensions.Logging;-using MediaBrowser.Model.Serialization;using System;using System.Collections.Generic;using System.Globalization;@@ -13,8 +9,12 @@ using System.Text;using System.Threading.Tasks;using System.Xml;using Emby.Server.Implementations.Services;+using MediaBrowser.Common.Extensions;+using MediaBrowser.Controller.Net;using MediaBrowser.Model.IO;+using MediaBrowser.Model.Serialization;using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;using IRequest = MediaBrowser.Model.Services.IRequest;using MimeTypes = MediaBrowser.Model.Net.MimeTypes;@@ -115,7 +115,8 @@ namespace Emby.Server.Implementations.HttpServerstring compressionType = null;bool isHeadRequest = false;- if (requestContext != null) {+ if (requestContext != null)+ {compressionType = GetCompressionType(requestContext, content, contentType);isHeadRequest = string.Equals(requestContext.Verb, "head", StringComparison.OrdinalIgnoreCase);}diff --git a/Emby.Server.Implementations/HttpServer/IHttpListener.cs b/Emby.Server.Implementations/HttpServer/IHttpListener.csindex d50d7df6b9..88d5316681 100644--- a/Emby.Server.Implementations/HttpServer/IHttpListener.cs+++ b/Emby.Server.Implementations/HttpServer/IHttpListener.cs@@ -1,10 +1,10 @@-using MediaBrowser.Controller.Net;-using System;+using System;using System.Collections.Generic;using System.Threading;using System.Threading.Tasks;-using MediaBrowser.Model.Services;using Emby.Server.Implementations.Net;+using MediaBrowser.Controller.Net;+using MediaBrowser.Model.Services;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/LoggerUtils.cs b/Emby.Server.Implementations/HttpServer/LoggerUtils.csindex 5b7bbe79cb..bf1079a2cf 100644--- a/Emby.Server.Implementations/HttpServer/LoggerUtils.cs+++ b/Emby.Server.Implementations/HttpServer/LoggerUtils.cs@@ -1,7 +1,7 @@-using Microsoft.Extensions.Logging;-using System;+using System;using System.Globalization;using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs b/Emby.Server.Implementations/HttpServer/RangeRequestWriter.csindex f08112f9ca..bb52cd7053 100644--- a/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs+++ b/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs@@ -1,4 +1,3 @@-using Microsoft.Extensions.Logging;using System;using System.Collections.Generic;using System.Globalization;@@ -7,6 +6,7 @@ using System.Net;using System.Threading;using System.Threading.Tasks;using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/ResponseFilter.cs b/Emby.Server.Implementations/HttpServer/ResponseFilter.csindex f38aa5ea06..21bd9df753 100644--- a/Emby.Server.Implementations/HttpServer/ResponseFilter.cs+++ b/Emby.Server.Implementations/HttpServer/ResponseFilter.cs@@ -1,8 +1,8 @@-using Microsoft.Extensions.Logging;-using System;+using System;using System.Globalization;using System.Text;using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs b/Emby.Server.Implementations/HttpServer/Security/AuthService.csindex fb5bfa601a..c037292ffe 100644--- a/Emby.Server.Implementations/HttpServer/Security/AuthService.cs+++ b/Emby.Server.Implementations/HttpServer/Security/AuthService.cs@@ -1,15 +1,13 @@+using System;+using System.Linq;+using MediaBrowser.Common.Net;using MediaBrowser.Controller.Configuration;-using MediaBrowser.Controller.Connect;-using MediaBrowser.Controller.Devices;using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Net;using MediaBrowser.Controller.Security;using MediaBrowser.Controller.Session;-using System;-using System.Linq;using MediaBrowser.Model.Services;-using MediaBrowser.Common.Net;namespace Emby.Server.Implementations.HttpServer.Security{diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.csindex f561c3d60f..ae4adda7cd 100644--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs@@ -1,12 +1,10 @@-using MediaBrowser.Controller.Connect;-using MediaBrowser.Controller.Net;-using MediaBrowser.Controller.Security;using System;using System.Collections.Generic;-using MediaBrowser.Model.Services;using System.Linq;-using System.Threading;using MediaBrowser.Controller.Library;+using MediaBrowser.Controller.Net;+using MediaBrowser.Controller.Security;+using MediaBrowser.Model.Services;namespace Emby.Server.Implementations.HttpServer.Security{diff --git a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs b/Emby.Server.Implementations/HttpServer/Security/SessionContext.csindex a919ce0083..b53d56a482 100644--- a/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs+++ b/Emby.Server.Implementations/HttpServer/Security/SessionContext.cs@@ -1,11 +1,10 @@-using MediaBrowser.Controller.Entities;+using System;+using MediaBrowser.Controller.Entities;using MediaBrowser.Controller.Library;using MediaBrowser.Controller.Net;using MediaBrowser.Controller.Security;using MediaBrowser.Controller.Session;-using System.Threading.Tasks;using MediaBrowser.Model.Services;-using System;namespace Emby.Server.Implementations.HttpServer.Security{diff --git a/Emby.Server.Implementations/HttpServer/StreamWriter.cs b/Emby.Server.Implementations/HttpServer/StreamWriter.csindex df0d746852..6755901895 100644--- a/Emby.Server.Implementations/HttpServer/StreamWriter.cs+++ b/Emby.Server.Implementations/HttpServer/StreamWriter.cs@@ -1,12 +1,11 @@-using Microsoft.Extensions.Logging;-using System;+using System;using System.Collections.Generic;using System.Globalization;using System.IO;using System.Threading;using System.Threading.Tasks;-using MediaBrowser.Model.Services;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.csindex 5426114f6f..d4ef2d8104 100644--- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs+++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs@@ -1,15 +1,15 @@-using System.Text;+using System;+using System.Net.WebSockets;+using System.Text;+using System.Threading;+using System.Threading.Tasks;+using Emby.Server.Implementations.Net;using MediaBrowser.Controller.Net;-using Microsoft.Extensions.Logging;using MediaBrowser.Model.Net;using MediaBrowser.Model.Serialization;-using System;-using System.Threading;-using System.Threading.Tasks;using MediaBrowser.Model.Services;using MediaBrowser.Model.Text;-using System.Net.WebSockets;-using Emby.Server.Implementations.Net;+using Microsoft.Extensions.Logging;namespace Emby.Server.Implementations.HttpServer{