You are designing an interactive web-based stock market service for a financial services company. The company has a preferred stock symbol. When a customer requests a stock quote, the financial services company compares the requested stock symbol to the preferred stock symbol, and sets a flag in the message header if they match. The company can then log or filter the request based on the value of this flag (the actual implementation of the mediation logic is beyond the scope of this sample).
Mediation module
The diagram below shows the elements of the sample's mediation module, named CustomMediation, in the Assembly Editor: