Relative Content

Tag Archive for .netapicancellation-token

CancellationToken doesn’t work on API request

I check a lot of tutorials and everywhere developers describe that if I add CancellationToken to my request then when the request become cancelled then flag IsCancellationRequested should change from fals to true. But be honest it doesn’t work for me when I run it for .NET 7 & 8. Mabye someone tell me what I’m doing wrong becuase maybe I don’t understand something.