コード例 #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetExampleResponse> GetAsync(this IGetExample operations, string format = "json", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(format, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='format'>
 /// Specifies response output format
 /// </param>
 public static GetExampleResponse Get(this IGetExample operations, string format = "json")
 {
     return(operations.GetAsync(format).GetAwaiter().GetResult());
 }