I have an ASP.Net application in which a background task is executed using HostingEnvironment.QueueBackgroundWorkItem , as in the code below.
Question Will the background task be executed in the code below, use a thread from the thread pool of ASP.Net pool or use a thread from a separate thread pool?
public ActionResult SendCustMails() { HostingEnvironment.QueueBackgroundWorkItem(ct => SendCustMailsTo(ct, "Customer Notification")); return View(); } private void SendCustMailsTo (CancellationToken ct, string msg) {
Sunil Jul 11 '15 at 16:47 2015-07-11 16:47
source share