aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.ApiInteraction/IAsyncHttpClient.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-28 18:47:01 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-28 18:47:01 -0500
commit2c2f832c1a06c891bff9a95705d5fa7574c6fc9a (patch)
tree91fe90d1ad2689dd55538b577ce5fea66679ce2b /MediaBrowser.ApiInteraction/IAsyncHttpClient.cs
parent4947db0e2a8892fb723012e5403be3142dc88f0f (diff)
moved apiclient to it's own repo
Diffstat (limited to 'MediaBrowser.ApiInteraction/IAsyncHttpClient.cs')
-rw-r--r--MediaBrowser.ApiInteraction/IAsyncHttpClient.cs49
1 files changed, 0 insertions, 49 deletions
diff --git a/MediaBrowser.ApiInteraction/IAsyncHttpClient.cs b/MediaBrowser.ApiInteraction/IAsyncHttpClient.cs
deleted file mode 100644
index 0837f150f..000000000
--- a/MediaBrowser.ApiInteraction/IAsyncHttpClient.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-using MediaBrowser.Model.Logging;
-using System;
-using System.IO;
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace MediaBrowser.ApiInteraction
-{
- /// <summary>
- /// Interface IHttpClient
- /// </summary>
- public interface IAsyncHttpClient : IDisposable
- {
- /// <summary>
- /// Sets the authorization header that should be supplied on every request
- /// </summary>
- /// <param name="header"></param>
- void SetAuthorizationHeader(string header);
-
- /// <summary>
- /// Gets the stream async.
- /// </summary>
- /// <param name="url">The URL.</param>
- /// <param name="logger">The logger.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{Stream}.</returns>
- Task<Stream> GetAsync(string url, ILogger logger, CancellationToken cancellationToken);
-
- /// <summary>
- /// Deletes the async.
- /// </summary>
- /// <param name="url">The URL.</param>
- /// <param name="logger">The logger.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task.</returns>
- Task DeleteAsync(string url, ILogger logger, CancellationToken cancellationToken);
-
- /// <summary>
- /// Posts the async.
- /// </summary>
- /// <param name="url">The URL.</param>
- /// <param name="contentType">Type of the content.</param>
- /// <param name="postContent">Content of the post.</param>
- /// <param name="logger">The logger.</param>
- /// <param name="cancellationToken">The cancellation token.</param>
- /// <returns>Task{Stream}.</returns>
- Task<Stream> PostAsync(string url, string contentType, string postContent, ILogger logger, CancellationToken cancellationToken);
- }
-}