Cancellation semantics are to throw an exception when the token is cancelled (e.g., CancellationToken.ThrowIfCancellationRequested
).
If you don't have any asynchronous work to do (other than base.SendAsync
), then you can just ignore the token.
Note that await base.SendAsync
may raise an exception if the token is cancelled. The exception will propagate naturally, but if you have any cleanup that must take place regardless of cancellation, use a using
or finally
block.