diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-12 15:13:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-08-12 15:13:36 -0400 |
| commit | 582edde742d8c694a90fc6bd93a603245ae1358e (patch) | |
| tree | d2c230e44092a43ab032213e539e54d518805004 /MediaBrowser.Model/ApiClient/IApiClient.cs | |
| parent | 8c64af83cdb12f92d22fe21387d7296033bdd0d5 (diff) | |
added cancellation token to get image stream
Diffstat (limited to 'MediaBrowser.Model/ApiClient/IApiClient.cs')
| -rw-r--r-- | MediaBrowser.Model/ApiClient/IApiClient.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MediaBrowser.Model/ApiClient/IApiClient.cs b/MediaBrowser.Model/ApiClient/IApiClient.cs index 7180ed5bc..02589d7ea 100644 --- a/MediaBrowser.Model/ApiClient/IApiClient.cs +++ b/MediaBrowser.Model/ApiClient/IApiClient.cs @@ -14,6 +14,7 @@ using MediaBrowser.Model.Users; using System; using System.Collections.Generic; using System.IO; +using System.Threading; using System.Threading.Tasks; namespace MediaBrowser.Model.ApiClient @@ -113,9 +114,10 @@ namespace MediaBrowser.Model.ApiClient /// Gets an image stream based on a url /// </summary> /// <param name="url">The URL.</param> + /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task{Stream}.</returns> /// <exception cref="ArgumentNullException">url</exception> - Task<Stream> GetImageStreamAsync(string url); + Task<Stream> GetImageStreamAsync(string url, CancellationToken cancellationToken); /// <summary> /// Gets a BaseItem |
