예제 #1
0
 /// <summary>
 /// Makes a HTTP GET request to the given URL and stores the returned resource.
 /// </summary>
 /// <param name="hal">The instance of <see cref="IHalClient"/> to extend.</param>
 /// <param name="href">The URI to request.</param>
 /// <returns>The updated <see cref="IHalClient"/>.</returns>
 public static Task<IHalClient> RootAsync(this IHalClient hal, string href) =>
     hal.RootAsync(href);
예제 #2
0
 /// <summary>
 /// Makes a HTTP GET request to the default URI and stores the returned resource.
 /// </summary>
 /// <param name="hal">The instance of <see cref="IHalClient"/> to extend.</param>
 /// <returns>The updated <see cref="IHalClient"/>.</returns>
 public static Task<IHalClient> RootAsync(this IHalClient hal) =>
     hal.RootAsync(string.Empty);