Example #1
0
 /// <summary>
 /// Retrieves the <see cref="Video"/> specified by <paramref name="videoUri"/> as an asynchronous operation.
 /// </summary>
 /// <param name="videoUri">The URL to visit.</param>
 /// <returns>A <see cref="Task"/> of the <see cref="Video"/> representing the information from <paramref name="videoUri"/>.</returns>
 public async Task<Video> GetVideoAsync(string videoUri)
 {
     using (var wrapped = new ClientService(this))
     {
         return await wrapped
             .GetVideoAsync(videoUri)
             .ConfigureAwait(false);
     }
 }
Example #2
0
 /// <summary>
 /// Retrieves the <see cref="Video"/> specified by <paramref name="videoUri"/> as an asynchronous operation.
 /// </summary>
 /// <param name="videoUri">The URL to visit.</param>
 /// <returns>A <see cref="Task"/> of the <see cref="Video"/> representing the information from <paramref name="videoUri"/>.</returns>
 public async Task <Video> GetVideoAsync(string videoUri)
 {
     using (var wrapped = new ClientService(this))
     {
         return(await wrapped
                .GetVideoAsync(videoUri)
                .ConfigureAwait(false));
     }
 }