I am working on the routing stuff running in a server environment, and I see there is some APIs allow users to pass CancellationToken parameter, my first feeling is these methods are async-await pattern, but actually, they are not, and I found there is no place calling cancellationToken.ThrowIfCancellationRequested() to check whether the calculate process is cancelled or not. What do you think of it?
Hi Supported Team,
I am working on the routing stuff running in a server environment, and I see there is some APIs allow users to pass CancellationToken parameter, my first feeling is these methods are async-await pattern, but actually, they are not, and I found there is no place calling
cancellationToken.ThrowIfCancellationRequested()
to check whether the calculate process is cancelled or not. What do you think of it?Thanks, Peter