CancellationScope Activity Updated for .NET 4 RTM
Nearly a year ago I created a CancellationScope Activity sample and posted it on CodeGallery for .NET 4 Beta 1. I went back yesterday and updated it for .NET 4 RTM – the sample has some interesting points to demonstrate.
It shows how the CancellationScope Activity works but it also shows
- How to create a custom activity that causes the workflow to go idle for testing purposes
- How to create a unit test that verifies the behavior of a console application by simply verifying the text output to the console.
You can download the sample from https://code.msdn.microsoft.com/wf4CancellationScope
Read more at Ron Jacobs Blog