-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can I carry on a state (parameters, class instance) across the different tries #422
Comments
Hi @infofromca Is your need to re-use a single If you can provide a brief code sketch of what you are looking to achieve, we can probably help in more detail. |
my use case is that I have a instance (S) to manipulate by retry system. after first (or second, or third..) retry , it has exception, now I need to get info(data) from exception, reassign this data to that instance(S). then try again.as I understand , after each retry, instance (S) will be disposed. so I think to use Context, but Context is also disposed. |
(It is not intended for re-use across multiple calls through Re:
The |
Thanks |
@infofromca Thanks for raising this. I've clarified the intellisense, in #423 . If you want more examples of the technique, we have a blog post on this. There's another nice example also in this recent discussion. |
At first , I think Context. but after search ,I found
so, is it doable?
how can I achieve that?
thanks
andy
The text was updated successfully, but these errors were encountered: