« Things to know about WF | Main | On Long Identifier Names »
In Windows Workflow Foundation, you have two different ways of adding runtime services to the Workflow Engine:
The latter is possible not only for the default services built into WF, like the SqlWorkflowPersistenceService, but also for your own ones; you just have to make sure you specify the correct type.
You might have noticed that some of the service take extra parameters on the configuration file. For example, for the SqlWorkflowPersistenceService entry you can configure parameters like the ConnectionString, IsTransactional and so on.
What may not be so obvious is that you can do the same thing for your own services and it's very easy! All you have to do is provide a constructor to your service class that takes a NameValueCollection as an argument; this collection will then have any named parameters that were included in the configuration entry. So, to keep in mind:
Windows Workflow Foundation, WF
Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...
email: tomas@winterdom.com msn: tomasr@passport.com
Copyright © 2002-2008, Tomas Restrepo.
Powered by: newtelligence dasBlog 2.1.8139.823