Intercept Participant Sample

Connected Services Framework

The Intercept Participant sample demonstrates how to use an Intercept participant to transform the message payload from one format to another. The sample consists of three participants: a Windows Forms UI application, a Service participant, and an Intercept participant. All of the participants are TCP-based Web services. An Intercept participant is a specialized participant designed to transform the request from one format to another. In this sample, the Intercept participant exposes a service endpoint to convert a yards-to-meters measurement unit conversion.

The context diagram below illustrates the participants involved in the message collaboration.


                     Figure: Intercept Participant sample context diagram


From the Windows Forms UI, the user can perform the following tasks:

  1. Create a session, loading the session manifest either from a file or compose it programmatically
  2. Route a simple message containing an integer value as the sample payload
  3. Terminate a session
  4. View the response message of each action


Interceptor Sample Design Overview