Skip to content
Discussion options

You must be logged in to vote

That article talks about using HttpContext.RequestAborted as the CancellationTokenSource for your requests - this still works. If you're using tasks, you'll need to check it yourself, and/or propagate it to your called methods. If you're using Asyncs, you can use HttpContext.RequestAborted as the cancellationToken parameter of an Async.StartAsTask call. Either way, it mostly just works out of the box as you'd expect!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@xperiandri
Comment options

@abelbraaksma
Comment options

Answer selected by xperiandri
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants