I have a custom ASP.NET Core middleware and I want to retrieve the cancellation token for the request.
I tried to add it to the signature of the invoke like this:
public async Task Invoke(HttpContext context,CancellationToken token)
But as soon as I add it, it isn't called any more.
What am I doing wrong?