You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HOL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1128,7 +1128,7 @@ Time-consuming operations on your web site are great candidates for asynchronous
1128
1128
1129
1129
The RegisterAsyncTask registers a new page asynchronous task to be executed in a different thread. It receives a lambda expression with the Task (t) to be executed. The **await** keyword in the **DownloadFileTaskAsync** method converts the remainder of the method into a callback that is invoked asynchronously after the **DownloadFileTaskAsync** method has completed. ASP.NET will resume the execution of the method by automatically maintaining all the HTTP request original values. The new asynchronous programming model in .NET 4.5 enables you to write asynchronous code that looks very much like synchronous code, and let the compiler handle the complications of callback functions or continuation code. **Note:** RegisterAsyncTask and PageAsyncTask were already available since .NET 2.0. The await keyword is new from the .NET 4.5 asynchronous programming model and can be used together with the new TaskAsync methods from the .NET WebClient object.
1130
1130
1131
-
1. Add code to display the threads on which the code started and finished executing. To do this, replace the **UpdateProductImage** method with the following code.
1131
+
1. Add code to display the threads on which the code started and finished executing. To do this, update the **UpdateProductImage** method with the following code.
1132
1132
1133
1133
(Code Snippet - _Web Forms Lab - Ex03 - Show threads_)
0 commit comments