ASP.NET Core IAsyncEnumerable Web API

Опубликовано: 28 Октябрь 2024
на канале: PRP Coding
1,395
61

Hello Everyone!

Welcome to PRP Coding YouTube channel. I am Praveen Raveendran Pillai.

In this session I shall explain "How to build an ASP.NET Core Web API which streams data from a csv file using IAsyncEnumerable?"

IAsyncEnumerable is a powerful feature introduced in C# 8.0 that allows to work with a sequence of data asynchronously.

IAsyncEnumerable provides a way to iterate over an IEnumerable collection asynchronously while using the yield operator to return data as it comes in. 

To consume the IAsyncEnumerable results, we need to use the new await foreach() syntax, which is also a new feature available in C# 8.

Topics Covered

1. How to asynchronously read data from a CSV file?
2. Testing IAsyncEnumerable API endpoint using visual studio http file?
3. Why IAsyncEnumerable endpoints are not working as expected in Postman?
4.What is HTTPCompletionOption?
5.What is JsonSerializer DeserializeAsyncEnumerable?

Follow me on LinkedIn:   / praveen-raveendran-pillai  

Please don’t forget to subscribe my YouTube channel and stay tuned for the next updates 🙂


#dotnet #csharp #aspnetcore #aspnetcorewebapi #json #async #asyncawait #asynchronousprogramming #coding #programming #training #learning #aspnet