Friday, November 23, 2012

Generic based Configuration Settings Reader


Interface to read any config file Implementation

How to Log custom information in Workflow Foundation 4

To log exception details and any custom information inside your workflow, you need

  1. A reference to Microsoft's SqlTrackingParticipant assembly. For the source code of SqlTrackingParticipant component and the schema of the Tracking Database, use the link Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4.
  2. Develop a Custom Activity using the below code.Use this activity inside your workflow and set the important properties that you want to log into the tracking database.
  3. Add below Configuration in the Web.Config file of your workflow project.
References http://msdn.microsoft.com/en-us/library/ee622983.aspx