The previous recipes all included calling object model synchronously. There are times when the execution is a long running process, it makes sense to call the method asynchronously and provide a visual cue to the users about the progress of the execution. In this recipe, we will create a console application that calls the Object Model asynchronously.
Launch your Visual Studio 2010 IDE as an administrator (right-click the shortcut and select Run as administrator).
Select File | New | Project. The new project wizard dialog box will be displayed (make sure to select .NET Framework 3.5 in the top drop-down box).
Select Windows console application under the Visual C# | Windows | Console Application node from the Installed Templates section on the left-hand side.
Name the project...