-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Description
Describe the bug
I try to report progress for a long running operation. My implementation is based on how i would implment it on ASP.Net Core
Unfortunately it does not work. How should I implement something like this for embedio?
**Desktop
- OS: Windows
- Browser Edge
- Version 3.5.2.0
[Route(HttpVerbs.Any, "/import")]
public async Task ImportPrjAsync([QueryData] NameValueCollection parameters)
{
Response.StatusCode = 200;
Response.ContentType = "text/event-stream";
Response.ContentLength64 = 10;
var sw = new StreamWriter(HttpContext.Response.OutputStream);
for (var i = 0; i < 10; i++)
{
await Task.Delay(1000);
await sw.WriteAsync("1");
await sw.FlushAsync();
}
}
Metadata
Metadata
Assignees
Labels
No labels