Channel Caching with Send

The SendMessageChannelCache enables users to have different levels of channel caching with Send and SendParametersContent activities. Instance-level caching is enabled by default and this sample demonstrates the following features:

  1. Share a SendMessageChannelCache across an application domain.

  2. Disable channel caching.

  3. Share a SendMessageChannelCache among workflow instances in a WorkflowServiceHost.


SendMessageChannelCache extension, Send, Receive, ReceiveContent and SendReply activities.

To set up, build, and run the sample

  1. Load the project solution in Visual Studio 2010 and build the project.

  2. Run the EchoWorkflowService application generated in \EchoWorkflowService\bin\debug.

  3. Run the EchoWorkflowClient application generated in .\EchoWorkflowClient\bin\debug.

  4. The client calls the Echo operation on the service and prints the results. When the results have been printed, press ENTER to exit the client and the service.


The samples may already be installed on your machine. Check for the following (default) directory before continuing.


If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.