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