Learning Streamreader and async / await

where can i learn this in a good way iam learning mvc right now and i need to know this for post/get requests
34 Replies
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
no i mean learning stream / asyn wait for get and post
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
harsha use it to change the body from type stream to string
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
app.Run(async context =>
{
StreamReader reader = new StreamReader(context.Request.Body);

await context.Response.WriteAsync(reader);
});
app.Run(async context =>
{
StreamReader reader = new StreamReader(context.Request.Body);

await context.Response.WriteAsync(reader);
});
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
idk i just saw it in the section and i want to learn about it
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
Asp.Net Core 10 (.NET 10) | True Ultimate Guide in udemy in Section 3 - Video HTTP GET & POST using postman he say that the context.Request.Body is type of stream so he trying to make it string using stream library
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
yes
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
oh
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
so i won't need to learn about learn about streamreader
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
oh thanks alot i got it
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
where can i find something like that
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
Angius
Angius2mo ago
I can see the course talking about it to show how it's all done under the hood, then it goes up through the abstractions Kinda like a PHP course starting with $_POST and going through building a front router, only to end at Symfony
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX2mo ago
TeBeCo
so you can look the docs for "stream" if you want to learn about stream
Quoted by
React with ❌ to remove this embed.
GG OR NOTHING
GG OR NOTHINGOP2mo ago
yes i think that
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
okay thanks alot for your advice
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
i will try to search
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
thanks alot
taveira7595
taveira75952mo ago
Stream is a very high level abstraction, if you want to learn search for https://learn.microsoft.com/en-us/dotnet/standard/io/pipelines That's the game changer which enables high performance
System.IO.Pipelines - .NET
Learn how to efficiently use I/O pipelines in .NET and avoid problems in your code.
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
GG OR NOTHING
GG OR NOTHINGOP2mo ago
sure i will

Did you find this page helpful?