ASP.NET Core multithreaded background threads
Using ASP.NET Core .NET 5. Running on Windows.
Using ASP.NET Core .NET 5. Running on Windows.
the question might be seems to be a regular one, but it isn’t. No matter what am I doing, the progress bar just not increasing. In the base concept I have a GUI form and it has got a bacgroundworker. In the backgroundworker I am using a self defined class to read out the data … Read more
I am developing an ASP.NET Core 3.1 API for my React front end app.
I am using Task.Run inside backgroundservice. I have backgroundservice which is responsible for LogOn and Send HeartBeat for a specific system.
In an ASP.Net application, the user clicks a button on the webpage and this then instantiates an object on the server through the event handler and calls a method on the object.
The method goes off to an external system to do stuff and this could take a while. So, what I would like to do is run that method call in another thread so I can return control to the user with “Your request has been submitted”.
I am reasonably happy to do this as fire-and-forget, though it would be even nicer if the user could keep polling the object for status.
I need to publish some data to the service from the C# web application. The data itself is collected when user uses the application (a kind of usage statistics). I don’t want to send data to the service during each user’s request, I would rather collect the data in the app and send then all the data in a single request in a separate thread, that does not serve the users requests (I mean user does not have to wait for the request to be processed by the service). For this purpose I need a kind of JS’s setInterval analog – the launch of the function each X seconds to flush all collected data to the service.
I have just started to look at the new “System.Threading.Tasks” goodness in .Net 4.0, and would like to know if there is any build in support for limiting the number of concurrent tasks that run at once, or if this should be manually handled.
Is it possible to use BackGroundWorker thread in ASP.NET 2.0 for the following scenario, so that the user at the browser’s end does not have to wait for long time?
I’ve always been under the impression that using the ThreadPool for (let’s say non-critical) short-lived background tasks was considered best practice, even in ASP.NET, but then I came across this article that seems to suggest otherwise – the argument being that you should leave the ThreadPool to deal with ASP.NET related requests.
I have a solution with some projects. There are several break-points in different projects. I want to trace the first thread hit one of these break-points and continue tracing that single thread despite of other threads entering the same code-blocks.