예제 #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 <object> PostAsync(this ITestNullResponse operations, string format = "json", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostWithHttpMessagesAsync(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 object Post(this ITestNullResponse operations, string format = "json")
 {
     return(operations.PostAsync(format).GetAwaiter().GetResult());
 }