Last post Jul 07, 2014 04:43 AM by rickevry
May 09, 2014 11:33 AM|learning2program|LINK
I need guidance with the big picture, so I know what specifics to pursue.
1. User selects a linkbutton from web page A, or from a webpage of one of my partners.
2. Page B logs, and assesses the request. It either:
A. Finds nothing cached and initiates a computer intensive process (can take milliseconds or many minutes) while displaying a wait page gif. It goes to page C when processing is complete (if possible, otherwise I guess this process could be polled
for completion from page C).
B. Finds that caching is underway, but not yet complete. It recognizes this condition by way of the log table in my caching database.
C. Finds cached data and skips to page C to display it.
3. User requested data is delivered on page C, or to a storage area on a partner website.
1. Selection page (my website, or a partners website)
2. Wait page (my website)
3. Results page (my website, or a partners website)
What tools can best bring about this outcome?
May 12, 2014 04:04 AM|BetsyASP|LINK
May 12, 2014 10:53 PM|learning2program|LINK
Thank you for answering.
I gather from your response that System.Threading is the tool to use?
Jul 07, 2014 04:43 AM|rickevry|LINK
A thread will make it possible to run background code in an asp.net application. But, you also need SignalR och WebAPI to handle the communication between the background task and the user interface.
Since you do not describe the hosting infrastructure and the “computer intensive process” in more detail, it is difficult to give you a good answer.