How to use CancellationToken in ASP.NET C# API

  Рет қаралды 4,953

Gui Ferreira

Gui Ferreira

6 ай бұрын

I saved my web API database with C# CancellationTokens.
💎 Be a Patreon to get the source code: / gsferreira
🚨 KEY LINKS
🤝 Support me on Patreon (and get access to source code) here: / gsferreira
💌 Free Developer Insights: guiferreira.me/newsletter
🔗 GET IN TOUCH
LinkedIn: / gferreira
Twitter: / gsferreira
GitHub: github.com/gsferreira
Get my newsletters: guiferreira.me/newsletter
Visit my blog: gsferreira.com
👋 WHO AM I
Hey! If you're new to my Channel, I'm Guilherme. Call me Gui. I'm a Minimalist Software Craftsman. What do I do here? I share tips on how to simplify your life as a Developer.
🎵 MUSIC CREDITS
Healing Salve / StreamBeats / Lofi
#dotnet #csharp

Пікірлер: 20
@gui.ferreira
@gui.ferreira
If you are a C# Developer, I have a Software Testing roadmap designed for you:
@charlesopuoro5295
@charlesopuoro5295
Absolutely enlightening. Thank you. Just subscribed and I'll be back for more.
@Tamer_Ali
@Tamer_Ali
Thanks a lot Gui, you awesome 👍
@andreasbrunnstrom8458
@andreasbrunnstrom8458
Thanks, I had not though about that case where you cancel the exception.. very interesting.
@alefsilva2541
@alefsilva2541
Boa! Mestre!
@wisamidris
@wisamidris
thanks
@vivekkaushik9508
@vivekkaushik9508
Love the thumbnail 😂😂😂❤
@GarethDoherty1985
@GarethDoherty1985
Does this work exactly the same on a SPA application. I build Web Client Apps using Blazor. I am on a page and press a button to send an API call to the server to get data (lets say its long running) and when I navigate to another page, that Request to the API isn't cancelled, and I assume that's because there wasn't a browser "refresh" that happened.
@ardavaztterterian1211
@ardavaztterterian1211
i dont understand on how reloading the page, will effect the previous request and how the cancellation token is passed. can someone explain?
@thanzeeljalaldeen
@thanzeeljalaldeen
should POST requests also use cancellation token? or is it only for GET requests?
THIS stops 90% of C# Developers Learning TDD
19:40
Gui Ferreira
Рет қаралды 13 М.
Cancellation Token in .NET | Exploring C# and DOTNET
18:42
Rahul Nath
Рет қаралды 4,4 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 150 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 114 МЛН
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 25 МЛН
This Book Changed how I Refactor Code
11:33
Gui Ferreira
Рет қаралды 5 М.
How do I Stay Organized as a Developer
15:21
Gui Ferreira
Рет қаралды 2 М.
Making Minimalist Web Server in C on Linux
10:23
Nir Lichtman
Рет қаралды 233 М.
Top 7 Ways to 10x Your API Performance
6:05
ByteByteGo
Рет қаралды 315 М.
Fix Your Controllers By Refactoring To Minimal APIs
14:56
Milan Jovanović
Рет қаралды 35 М.
🔥 How to use CancellationToken in ASP.NET Core WebApi
20:54
Saeed Esmaeelinejad
Рет қаралды 8 М.
10 Tools EVERY Software Engineer Should Know
9:46
Gui Ferreira
Рет қаралды 8 М.
Coupling and Cohesion to Write BETTER C# CODE
17:19
Gui Ferreira
Рет қаралды 2,5 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 150 МЛН