O'Reilly logo

Microsoft® Windows® Workflow Foundation Step by Step by Kenn Scribner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Loading and Unloading Instances on Idle

I mentioned earlier in the chapter that for our test application’s workflow we were going to use System.Threading.Thread.Sleep instead of using a Delay activity to introduce a delay in our workflow processing. I said at the time that I chose to do this because the Delay activity had special processing capabilities as far as persistence was concerned. Let’s now look briefly at what Delay does for us.

If you introduce a Delay activity into your workflow, clearly the intention is to suspend processing for some period of time, whether it’s an actual time period or a suspension until a specific point in time, such as a date five days in the future.

When a Delay activity is executed, assuming the workflow runtime ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required