How do I run asynchronous code in asp.net mvc 2?
Posted
by SLC
on Stack Overflow
See other posts from Stack Overflow
or by SLC
Published on 2010-06-08T10:07:56Z
Indexed on
2010/06/08
10:12 UTC
Read the original article
Hit count: 191
asp.net-mvc-2
I tried this:
BackgroundWorker bw = new BackgroundWorker();
bw.DoWork += (o, e) =>
{
SendConfEmail();
};
bw.RunWorkerAsync();
but it didn't work. SendConfEmail takes a while to run. I guess it's because BackgroundWorker is designed for winforms not webforms.
Any ideas how I can solve the problem?
© Stack Overflow or respective owner