Esempio n. 1
0
 /// <summary>
 /// Get a response with header value "value": 0.07 or -3.0
 /// </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 <HeaderResponseFloatHeaders> ResponseFloatAsync(this IHeader operations, string scenario, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ResponseFloatWithHttpMessagesAsync(scenario, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Get a response with header value "value": 0.07 or -3.0
 /// </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 ResponseFloatAsync(this IHeader operations, string scenario, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.ResponseFloatWithHttpMessagesAsync(scenario, null, cancellationToken).ConfigureAwait(false);
 }