---
title: "Using Polly with Any Type of Request"
url: https://daily.dev/posts/using-polly-with-any-type-of-request-ecdtqdxpm
source_url: https://nodogmablog.bryanhogan.net/2018/10/using-polly-with-any-type-of-request
type: article
source: "No Dogma Blog (Bryan Hogan)"
published: 2026-05-31T07:47:26.032Z
updated: 2026-05-31T08:49:57.190Z
tags: [".net"]
reading_time: 3
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.

# Using Polly with Any Type of Request

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

## Summary

Polly, the .NET resilience library, is not limited to HttpClient requests — it can be applied to any method call, whether it returns a value or not. This post demonstrates using Polly's retry policy with different return types including exceptions, int, IEnumerable, and bool, with code examples for each scenario.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nodogmablog.bryanhogan.net/2018/10/using-polly-with-any-type-of-request>

---

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

[View this post on daily.dev](https://daily.dev/posts/using-polly-with-any-type-of-request-ecdtqdxpm)
