extracted httpclient dependancy

This commit is contained in:
LukePulverenti
2013-02-24 19:13:45 -05:00
parent 5b1eea558a
commit 28ccfb1bd1
40 changed files with 412 additions and 171 deletions

View File

@@ -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>