Beispiel #1
0
 /// <summary>
 /// Get a response with header value "value": 105 or -2
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scenario'>
 /// Send a post request with header values "scenario": "positive" or "negative"
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HeaderResponseLongHeaders> ResponseLongAsync(this IHeader operations, string scenario, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ResponseLongWithHttpMessagesAsync(scenario, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Get a response with header value "value": 105 or -2
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scenario'>
 /// Send a post request with header values "scenario": "positive" or "negative"
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ResponseLongAsync(this IHeader operations, string scenario, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.ResponseLongWithHttpMessagesAsync(scenario, null, cancellationToken).ConfigureAwait(false);
 }