From 060215143ff62e4cf475a493e57c8607beca8640 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 20 Oct 2017 12:16:56 -0400 Subject: improve httpclient resource disposal --- MediaBrowser.Common/Net/IHttpClient.cs | 47 ---------------------------------- 1 file changed, 47 deletions(-) (limited to 'MediaBrowser.Common/Net/IHttpClient.cs') diff --git a/MediaBrowser.Common/Net/IHttpClient.cs b/MediaBrowser.Common/Net/IHttpClient.cs index 15257715f..cf5511965 100644 --- a/MediaBrowser.Common/Net/IHttpClient.cs +++ b/MediaBrowser.Common/Net/IHttpClient.cs @@ -18,24 +18,6 @@ namespace MediaBrowser.Common.Net /// Task{HttpResponseInfo}. Task GetResponse(HttpRequestOptions options); - /// - /// Performs a GET request and returns the resulting stream - /// - /// The URL. - /// The resource pool. - /// The cancellation token. - /// Task{Stream}. - /// - Task Get(string url, SemaphoreSlim resourcePool, CancellationToken cancellationToken); - - /// - /// Gets the specified URL. - /// - /// The URL. - /// The cancellation token. - /// Task{Stream}. - Task Get(string url, CancellationToken cancellationToken); - /// /// Gets the specified options. /// @@ -51,35 +33,6 @@ namespace MediaBrowser.Common.Net /// Task{HttpResponseInfo}. Task SendAsync(HttpRequestOptions options, string httpMethod); - /// - /// Performs a POST request - /// - /// The URL. - /// Params to add to the POST data. - /// The resource pool. - /// The cancellation token. - /// stream on success, null on failure - /// postData - /// - Task Post(string url, Dictionary postData, SemaphoreSlim resourcePool, CancellationToken cancellationToken); - - /// - /// Posts the specified URL. - /// - /// The URL. - /// The post data. - /// The cancellation token. - /// Task{Stream}. - Task Post(string url, Dictionary postData, CancellationToken cancellationToken); - - /// - /// Posts the specified options with post data - /// - /// The options - /// The post data - /// Task{Stream} - Task Post(HttpRequestOptions options, Dictionary postData); - /// /// Posts the specified options. /// -- cgit v1.2.3