---
title: "Polly with .NET 6, Part 7 - Policy Wraps with Minimal APIs, and HttpClientFactory"
url: https://daily.dev/posts/polly-with-net-6-part-7---policy-wraps-with-minimal-apis-and-httpclientfactory-vhoxhls9c
source_url: https://nodogmablog.bryanhogan.net/2022/12/polly-with-net-6-part-7-policy-wraps-with-minimal-apis-and-httpclientfactory
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:47:06.436Z
updated: 2026-05-31T08:47:22.605Z
tags: [".net", "c#"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Polly with .NET 6, Part 7 - Policy Wraps with Minimal APIs, and HttpClientFactory

**[No Dogma Blog \(Bryan Hogan\)](https://daily.dev/sources/bryanhogan)** · 2 min read · 0 upvotes · 0 comments

## Summary

Part 7 of a series on using Polly with .NET 6, demonstrating how to combine a Wait-and-Retry policy with a Fallback policy into a Policy Wrap and attach it to an HttpClientFactory. The example uses Minimal APIs, registers a named HttpClient with the policy via AddPolicyHandler, and shows how to inject IHttpClientFactory into an endpoint to make resilient HTTP calls.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2022/12/polly-with-net-6-part-7-policy-wraps-with-minimal-apis-and-httpclientfactory>

---

Tags: [#.net](https://daily.dev/tags/.net), [#c#](https://daily.dev/tags/c#)

[View this post on daily.dev](https://daily.dev/posts/polly-with-net-6-part-7---policy-wraps-with-minimal-apis-and-httpclientfactory-vhoxhls9c)
