BackgroundWorker thread in ASP.NET

后端 未结 7 1947
日久生厌
日久生厌 2020-11-27 17:50

Is it possible to use BackGroundWorker thread in ASP.NET 2.0 for the following scenario, so that the user at the browser\'s end does not have to wait for long time?

7条回答
  •  执笔经年
    2020-11-27 18:12

    5 years later, but problems the same… If you want to perform fire-and-forget operations from your application and forget about all difficulties related to background job processing in ASP.NET applications, you can use http://hangfire.io.

    • It does not loose your jobs on recycling process, because it uses persistent storage to keep information about background jobs.
    • It automatically retries your background jobs that were aborted or failed due to transient exception (SMTP Server connectivity errors).
    • It allows you to easily debug background jobs through the integrated web interface.
    • It is very easy to install/configure/use HangFire.

    There is also tutorial Sending Mail in Background with ASP.NET MVC for using HangFire with Postal.

提交回复
热议问题