.NET 5 REST API Tutorial: 06 Tasks, Async and Await

preview_player
Показать описание

This is part 6 of my .NET 5 REST API Tutorial. You will learn:
• What is the asynchronous programming model
• How to use tasks, async and await to add asynchronous programming to your REST API

#dotnet #restapi #tutorial
Рекомендации по теме
Комментарии
Автор

13:00 ... that entire section on returning when there is no awaitable task being done was alone was worth the thumbs up.

dasfahrer
Автор

I echo what Das Fahrer said, specially in unit testing those returning Task.CompletedTask will help alott. Learned whole async concepts With a simple example. Glad that you used InMemory and DB repositories. This helped to understand how to simulate Tasks.. THANKS A TON!!.

incrediblepatri
Автор

Thanks you for those videos, this is really great. Would it be possible for you to add a chapter about how to secure an API ?

daviddumont
Автор

Thanks great video. Well planned video series 🙂. Hope you will do a video for CQRS

NalinJ
Автор

thanks for explaining. Azure says, await can cause deadlocks. But you mention await avoids "blocking call" (11:45). So is async good for the Client, but not good for the client when the client needs to execute a database command, therefore, causing a potential deadlock. But, I am new to the async talking to expensive external services. Also, what other things does your client app need to do, regarding, it cannot wait on a call to the database synchronously, especially regarding updates? Can you imagine an example? Or are you referring to concurrent users, who may be using the client? is async mutually exclusive to each user (?).

PigsOnBook
Автор

As with all your videos, this one too had really great content and superb presentation style. Julio, could you provide guidance on how to deal with nested embedded objects in general? For example, if to your catalog item one wanted to add a list of records that show side effect (as text) and severity (as number). Thanks - Basab

basabdattaray
Автор

For your public async Task<Item> GetItemAsync(Guid id), Could you have used

return items.Where(item => item.Id == id).SingleOrDefaultAsync() vs saving it as an item and then using "return await Task.FromResult(item)" ?

djtsyle
Автор

can you please a video series on CQRS and MediatoR

kartheeknandini
Автор

Hi, One query where from you decide the repository map to In-Memory or MongoDB?

chandandey
Автор

I wonder do you do tutorial that using JSON-RPC? Thank you.

patyue
Автор

You should write a book about this .NET 5 materials. Five stars!!!

doeseast
Автор

Julio, I am not able to understan the reason behind using You say it is because of .Net 3 but we are using .Net 5

eliassal
welcome to shbcf.ru