Skip to content

Commit 805d3df

Browse files
author
Jonathan
committed
fixed minor bug
1 parent aae9d0b commit 805d3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HOL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ Time-consuming operations on your web site are great candidates for asynchronous
11281128

11291129
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.
11301130

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.
11321132

11331133
(Code Snippet - _Web Forms Lab - Ex03 - Show threads_)
11341134

0 commit comments

Comments
 (0)