eg. we have this code in the form of asp.net codebihind:
private void btnSendEmails_OnClick() { Send100000EmailsAndWaitForReplies(); }
Execution of this code will be killed due to a timeout. To solve the problem, I would like to see something like this:
private void btnSendEmails_OnClick() { var taskId = AsyncTask.Run( () => Send100000EmailsAndWaitForReplies() );
And this method will be executed somehow outside the w3wp.exe process in a special enveronment.
Does anyone know a structure / toolkit to solve such problems?
Update: The email sending method is just an example of what I mean. In fact, I could have a lot of functionality that should run outside the asp.net workflow.
eg. this moment is very important for an application that combines data from several third-party services, something with it and sends back to another service.
source share