1 write to RetryPolicy
Microsoft.Extensions.Http.Polly.Tests (1)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (1)
27
RetryPolicy
= Policy.Handle<OverflowException>().OrResult<HttpResponseMessage>(r => false).RetryAsync();
7 references to RetryPolicy
Microsoft.Extensions.Http.Polly.Tests (7)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (7)
47
.AddPolicyHandler(
RetryPolicy
)
82
.AddPolicyHandler((req) => req.RequestUri.AbsolutePath == "/" ?
RetryPolicy
: NoOpPolicy)
120
.AddPolicyHandler((req) => req.RequestUri.AbsolutePath == "/" ?
RetryPolicy
: NoOpPolicy)
155
registry.Add<IAsyncPolicy<HttpResponseMessage>>("retry",
RetryPolicy
);
194
registry.Add<IAsyncPolicy<HttpResponseMessage>>("retry",
RetryPolicy
);
341
return
RetryPolicy
;
410
registry.Add<IAsyncPolicy<HttpResponseMessage>>(policyName,
RetryPolicy
);