The following doesn't compile. This is for asynchronous calls in a 4.0, aspx WebForms page.
var task = Task.Factory.StartNew(() => Thread.Sleep(100));
var pat = new PageAsyncTask(task); //Doesn't compile, no such signature.
Page.RegisterAsyncTask(pat);
Google searching is failing me because of all the irrelevant 4.5 material that I can't use. By that I mean, I can't use 4.5.
If I just use a Task without RegisterAsyncTask, I get a warning that bare Tasks are not supported in WebForms, or it hangs.