mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-18 16:16:17 +00:00
extracted httpclient dependancy
This commit is contained in:
@@ -171,12 +171,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
/// <value>The web socket listeners.</value>
|
||||
public IEnumerable<IWebSocketListener> WebSocketListeners { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// The _HTTP manager
|
||||
/// </summary>
|
||||
/// <value>The HTTP manager.</value>
|
||||
public HttpManager HttpManager { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the TCP manager.
|
||||
/// </summary>
|
||||
@@ -323,9 +317,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
|
||||
Logger.Info("Version {0} initializing", ApplicationVersion);
|
||||
|
||||
DisposeHttpManager();
|
||||
HttpManager = new HttpManager(this, Logger);
|
||||
|
||||
await OnConfigurationLoaded().ConfigureAwait(false);
|
||||
|
||||
FindParts();
|
||||
@@ -422,7 +413,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
if (dispose)
|
||||
{
|
||||
DisposeTcpManager();
|
||||
DisposeHttpManager();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -438,18 +428,6 @@ namespace MediaBrowser.Common.Kernel
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Disposes the HTTP manager.
|
||||
/// </summary>
|
||||
private void DisposeHttpManager()
|
||||
{
|
||||
if (HttpManager != null)
|
||||
{
|
||||
HttpManager.Dispose();
|
||||
HttpManager = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current application version
|
||||
/// </summary>
|
||||
|
||||
@@ -3,7 +3,6 @@ using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.WebSockets;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
using System.Net.WebSockets;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
@@ -39,7 +38,7 @@ namespace MediaBrowser.Common.Kernel
|
||||
/// Gets or sets the json serializer.
|
||||
/// </summary>
|
||||
/// <value>The json serializer.</value>
|
||||
private IJsonSerializer _jsonSerializer;
|
||||
private readonly IJsonSerializer _jsonSerializer;
|
||||
|
||||
/// <summary>
|
||||
/// This subscribes to HttpListener requests and finds the appropriate BaseHandler to process it
|
||||
|
||||
Reference in New Issue
Block a user