I have used TPL to do long running process like generating 1,00,000 PDF in my asp.net application. Codes is like bellow:
private Task<ErrorList> GeneratePDF()
{
return Task.Factory.StartNew(
--pdf generation goes here....
)
}
Can anybody please help me to do following action:
- I want to intimate UI how many PDF has been generated till now.
- Once process is completed i want to show one popup page with all details of PDF generation. I could not find a way to write callback....