How to access InvocationContext CancellationTokenSource? #2192
Unanswered
rjdunnill-atwork
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the current beta (released through NuGet), and I am curious as to what triggers the InvocationContext's CancellationTokenSource. I can't find any way to access the CancellationTokenSource outside of the command handler; can anyone advise how this CancellationTokenSource is meant to be used?
Among other things, I'd like to signal cancellation if CNTL-C is pressed. This is easy enough to do with a CancellationTokenSource of my own creation, but not with the one embedded in InvocationContext.
Beta Was this translation helpful? Give feedback.
All reactions