mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 10:58:58 -07:00
24 lines
676 B
C#
24 lines
676 B
C#
|
using System.IO;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace MediaBrowser.Model.ApiClient
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Class ApiClientExtensions
|
|||
|
/// </summary>
|
|||
|
public static class ApiClientExtensions
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Gets the image stream async.
|
|||
|
/// </summary>
|
|||
|
/// <param name="apiClient">The API client.</param>
|
|||
|
/// <param name="url">The URL.</param>
|
|||
|
/// <returns>Task{Stream}.</returns>
|
|||
|
public static Task<Stream> GetImageStreamAsync(this IApiClient apiClient, string url)
|
|||
|
{
|
|||
|
return apiClient.GetImageStreamAsync(url, CancellationToken.None);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|