A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/reactiveui/refit/issues/801 below:

Have the possibility to setup Polly Context · Issue #801 · reactiveui/refit · GitHub

Hello and thanks in advance!
What about the case in which Polly and Refit are used with HttpClientFactory?
For example: is there a way to setup the Polly Context before each call with Refit?
https://github.com/App-vNext/Polly/wiki/Keys-And-Context-Data
I didn't find a way to manage this.
In Controllers for example you inject the refit-generated interface (and it is amazing) but at this point you can't setup the Context because you can't access the underlying http request.
Polly provides the request.SetPolicyExecutionContext(context); but we can't use it.
https://github.com/App-vNext/Polly/wiki/Polly-and-HttpClientFactory#use-case-exchanging-information-between-policy-execution-and-calling-code


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4