Microsoft Download Center Archive

Windows Workflow Foundation Long Running Activity Sample

  • Published:
  • Version: 1
  • Category: SDK
  • Language: English

Sample code illustrating an activity that executes CPU for a long period

  • Sample code illustrating an activity that executes CPU for a long period. This allows for CPU intensive tasks or external long running web services to be called from within a WF activity. Long is a subjective amount of time, but a rule of thumb is 1/10th second or more. Paul Andrew has written a short article about patterns for activity development which includes this sample as a long running activity. The sample is available in this download as both C# and VB.NET.


Status: Deleted

This download is no longer available on The downloads below are archives provided by the Internet Archive Wayback Machine from the Microsoft Download Center prior to August 2020.

FileSHA1 HashSize
LongRunningActivitySample_2007-11-08.EXE1858519fef913176ce2a2d03c124491f4cd85bd675 KB

System Requirements

Operating Systems: Windows Server 2003, Windows Vista, Windows XP

  • .NET Framework 3.5 including Windows Workflow Foundation. This also applies to the .NET Framework 3.0 version of Windows Workflow Foundation but the included Visual Studio project files are versioned at Visual Studio 2008.

Installation Instructions

  • Run the sample. Agree to the standard sample EULA. Extract the resulting ZIP file. You will find project files for both C# and VB.NET for use in Visual Studio 2008. Only source is included.