public async Task <byte[]> GetBytesAsync() { using (var client = new VideoClient()) { return(await client .GetBytesAsync(this) .ConfigureAwait(false)); } }
/// <summary> /// Gets the byte array representing the video's file as an asynchronous operation. /// </summary> /// <returns>A Task returning the bytes of the video, which are generally saved into a file.</returns> public async Task<byte[]> GetBytesAsync() { using (var client = new VideoClient()) { return await client .GetBytesAsync(this) .ConfigureAwait(false); } }
public async Task <byte[]> GetBytesAsync() { return(await _client .GetBytesAsync(this) .ConfigureAwait(false)); }