I have a asp net core
server and i was wondering if there is any way in which one can send a request
by which it would announce the server to to terminate all other requests (that are waiting to be processed or are under processing ) ? I do not want to kill the server process
...i just want to clear both the request queue
and the current tasks.
Is there any mechanism in the framework by which you could do that?
I have looked in the ThreadPool
but it seems it does not expose the current running threads.
My approach would be to safely terminate them if there is such a mechanism.