Пример #1
0
 public async Task <byte[]> GetBytesAsync()
 {
     using (var client = new VideoClient())
     {
         return(await client
                .GetBytesAsync(this)
                .ConfigureAwait(false));
     }
 }
Пример #2
0
 /// <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);
     }
 }
Пример #3
0
 public async Task <byte[]> GetBytesAsync()
 {
     return(await _client
            .GetBytesAsync(this)
            .ConfigureAwait(false));
 }