Pass Retry Count to client service #2187
Closed
AhsanShuvo
started this conversation in
General
Replies: 2 comments
-
I got it right now.
Here is my repo for playgorund - https://github.com/AhsanShuvo/PolyLibraryPlayground |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, the registration order of the handlers does matter. Here I have demonstrated the difference: https://stackoverflow.com/a/63700841/13268855 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My client service needs to perform some operation based on whether it is retry or not.
I tried to add retry policy like below -
In my
RetryHandler
class I tried to add a header like this -But context key is not available in
RetryHandler
class. I am suspecting context is not being correctly passed.How can I pass the polly context correctly?
My httpClient Extension class -
Beta Was this translation helpful? Give feedback.
All reactions