Refresh Token using Polly with Named Client
TL;DR: You need to define a communication protocol between a RetryPolicy, a DelegatingHandler and a TokenService. In case of Typed Clients you can explicitly call the ExecuteAsync and use the Context to exchange data between the to-be-decorated method and the onRetry(Async) delegate. This trick can’t be used in a named client situation. What you need … Read more