예제 #1
0
파일: Video.cs 프로젝트: srdev78/libvideo
 public async Task <byte[]> GetBytesAsync()
 {
     using (var client = new VideoClient())
     {
         return(await client
                .GetBytesAsync(this)
                .ConfigureAwait(false));
     }
 }
예제 #2
0
파일: Video.cs 프로젝트: AIBrain/libvideo
 /// <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
파일: Video.cs 프로젝트: nefarius/libvideo
 public async Task <byte[]> GetBytesAsync()
 {
     return(await _client
            .GetBytesAsync(this)
            .ConfigureAwait(false));
 }