openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ][CSHARP][GENERICHOST] Replace deprecated Microsoft.Extensions.Http.Polly dependency

Open alec-petersen opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe.

Microsoft announced that Microsoft.Extensions.Http.Polly is deprecated.

Describe the solution you'd like

We should adopt one of the supported packages instead (Microsoft.Extensions.Resilience and Microsoft.Extensions.Http.Resilience). I have not looked into the exact work to do this quite yet, but I am happy to work on this. I think we'll need to keep the polly dependency around for people generating on .net versions older than .NET 6 but we'll see.

alec-petersen avatar Oct 03 '25 12:10 alec-petersen

+1 as Polly v7 is also deprecated, and Polly.Core is the favoured package to use. If both pulled it causes ambiguity on lot of references.

alexaka1 avatar Nov 26 '25 13:11 alexaka1