When Asp.net terminates background threads?

前端 未结 3 1520
一向
一向 2021-01-27 10:42

I was working on a project and there is bulk e-mail sending part of it and when user clicks on the button, he/she gets the \"Thanks the e-mails have been sent\" immediately as a

3条回答
  •  轮回少年
    2021-01-27 11:31

    You can use MSMQ for creating your email queue and have a single thread process the queue.

    The following post might be useful as it fits your problem domain. Although it does not use MSMQ but is a good post on processing scheduled tasks using ASP.net.

    Simulate a Windows Service using ASP.NET to run scheduled jobs

提交回复
热议问题