C
C#2mo ago
monate

StreamResponse with Middleware

Hello, everyone. If you have rich experience in streaming communication in asp.net, I hope your help. Thank you.
6 Replies
monate
monateOP2mo ago
But I can't know exact reason why it doesn't work. If anybody has experience with it, I'll appreciate it if you help me. Thank you.
FusedQyou
FusedQyou2mo ago
$paste your code on a paste site so it's much easier to read
MODiX
MODiX2mo ago
If your code is too long, you can post to https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code!
monate
monateOP2mo ago
BlazeBin - bkbctmxjuvri
A tool for sharing your source code with the world!
BlazeBin - bkbctmxjuvri
A tool for sharing your source code with the world!
BlazeBin - bkbctmxjuvri
A tool for sharing your source code with the world!
monate
monateOP2mo ago
The OpenAI interface works correctly. And the writeasync function is calling each time correctly. But the stream responsing is not working correctly. I hope your help.
Anton
Anton2mo ago
FYI the service scope is disposed before the stream from an action result is read through. I haven't read your code You have to go lower level and write to the output stream directly or buffer the stream in memory

Did you find this page helpful?