Async processing after page unloaded

O

Oleg Ogurok

Hi all,

I have a Mailer class with a Send(string[] toAddresses) method which sends
e-mail messages to my web users. Since I don't want a web client to wait
until the messages are sent, I call Send() asyncronously.
However, because I create an instance of Mailer class inside codebehind, as
soon as the page finishes sending HTML to the client, it terminates the
background Send() process. This is because the page loses the pointer to the
Mailer object.

What is the best way to ensure that the backgound process keeps processing
even after the page is destroyed?

Thanks,

-Oleg.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top