Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
/// <summary> /// Get a response with header values "P123DT22H14M12.011S" /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scenario'> /// Send a post request with header values "scenario": "valid" /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HeaderResponseDurationHeaders> ResponseDurationAsync(this IHeader operations, string scenario, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ResponseDurationWithHttpMessagesAsync(scenario, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }