WF Persistence Example
In Windows Workflow Foundation (WF) it's all about long running business logic. In effect WF provides a mechanism where you can use regular .NET objects that can execute over long periods of time. WF persists the .NET object state automatically when the workflow instance is idle. The WF instance is idle when it's waiting for messages and when it's idle it can be persisted into a database.
Bayer White has written a great sample and article about WF persistence so you can learn about it.