Using AsyncOperationContext in an Activity Sample
The sample activity uses the BeginWrite and EndWrite methods on the FileStream class to asynchronously write data to a file. The pattern introduced here can be adapted for use with other asynchronous methods. While the asynchronous operation is executing, other activities in the workflow can execute, but the workflow cannot be persisted.
To set up, build, and run the sample
Open the Async.sln sample solution in Visual Studio 2010.
Build and run the solution.
The samples may already be installed on your machine. Check for the following (default) directory before continuing.