7 instantiations of RetryConditionHeaderValue
Microsoft.Extensions.Http.Resilience.Tests (4)
Internal\RetryAfterHelperTests.cs (3)
20response.Headers.RetryAfter = new RetryConditionHeaderValue(TimeSpan.FromSeconds(10)); 45response.Headers.RetryAfter = new RetryConditionHeaderValue(timeProvider.GetUtcNow() + TimeSpan.FromDays(1)); 59response.Headers.RetryAfter = new RetryConditionHeaderValue(timeProvider.GetUtcNow() + TimeSpan.FromDays(1));
Polly\HttpRetryStrategyOptionsTests.cs (1)
134RetryAfter = new RetryConditionHeaderValue(TimeSpan.FromSeconds(10))
System.Net.Http (3)
System\Net\Http\Headers\RetryConditionHeaderValue.cs (3)
136parsedValue = new RetryConditionHeaderValue(date); 140parsedValue = new RetryConditionHeaderValue(new TimeSpan(0, 0, deltaSeconds)); 148return new RetryConditionHeaderValue(this);
10 references to RetryConditionHeaderValue
netstandard (1)
netstandard.cs (1)
1117[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.Headers.RetryConditionHeaderValue))]
System.Net.Http (9)
System\Net\Http\Headers\GenericHeaderParser.cs (1)
28internal static readonly GenericHeaderParser RetryConditionParser = new GenericHeaderParser(false, RetryConditionHeaderValue.GetRetryConditionLength);
System\Net\Http\Headers\HttpResponseHeaders.cs (2)
56public RetryConditionHeaderValue? RetryAfter 58get { return (RetryConditionHeaderValue?)GetSingleParsedValue(KnownHeaders.RetryAfter.Descriptor); }
System\Net\Http\Headers\RetryConditionHeaderValue.cs (6)
36private RetryConditionHeaderValue(RetryConditionHeaderValue source) 50obj is RetryConditionHeaderValue other && 57public static RetryConditionHeaderValue Parse(string input) 60return (RetryConditionHeaderValue)GenericHeaderParser.RetryConditionParser.ParseValue( 64public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out RetryConditionHeaderValue? parsedValue) 71parsedValue = (RetryConditionHeaderValue)output!;