A short guide on using Polly with .NET 6's top-level statements to inject an HttpClientFactory with a retry policy. Covers adding the Polly NuGet package, registering a named HttpClient with a retry policy handler in Program.cs, and consuming the factory via constructor injection in a controller.

2m read timeFrom nodogmablog.bryanhogan.net
Post cover image
1 Impression