public async Task <Stream> HeadAsync() { using (var client = new VideoClient()) { return(await client .StreamAsync(this) .ConfigureAwait(false)); } }
/// <summary> /// Streams the contents of the video as an asynchronous operation. /// </summary> /// <returns>A Task to a stream representing the binary contents of this video.</returns> public async Task<Stream> StreamAsync() { using (var client = new VideoClient()) { return await client .StreamAsync(this) .ConfigureAwait(false); } }
public async Task <Stream> StreamAsync() { return(await _client .StreamAsync(this) .ConfigureAwait(false)); }