refactor http client factory for mono

This commit is contained in:
Luke Pulverenti
2013-10-02 13:05:13 -04:00
parent 9f8a1b30a1
commit bb4c918bf8
9 changed files with 52 additions and 54 deletions

View File

@@ -332,7 +332,7 @@ namespace MediaBrowser.Common.Implementations
RegisterSingleInstance(TaskManager);
HttpClient = new HttpClientManager.HttpClientManager(ApplicationPaths, Logger, GetHttpMessageHandler);
HttpClient = new HttpClientManager.HttpClientManager(ApplicationPaths, Logger, CreateHttpClient);
RegisterSingleInstance(HttpClient);
NetworkManager = new NetworkManager();
@@ -352,7 +352,7 @@ namespace MediaBrowser.Common.Implementations
});
}
protected abstract HttpMessageHandler GetHttpMessageHandler(bool enableHttpCompression);
protected abstract HttpClient CreateHttpClient(bool enableHttpCompression);
/// <summary>
/// Gets a list of types within an assembly