Esempio n. 1
0
 public async Task <Stream> HeadAsync()
 {
     using (var client = new VideoClient())
     {
         return(await client
                .StreamAsync(this)
                .ConfigureAwait(false));
     }
 }
Esempio n. 2
0
 /// <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);
     }
 }
Esempio n. 3
0
 public async Task <Stream> StreamAsync()
 {
     return(await _client
            .StreamAsync(this)
            .ConfigureAwait(false));
 }