Implementing RoutingAgent Agents
Topic Last Modified: 2009-07-20
The RoutingAgentFactory and RoutingAgent classes are the base classes for transport agents that are designed to run on a computer that is running Microsoft Exchange Server 2007 that has the Hub Transport server role installed. The RoutingAgent class provides the following two events for which you may implement handlers in your Hub Transport agent:
- OnSubmittedMessage This event occurs after the message is taken off of the submit queue. Use the OnSubmittedMessage event if your Hub Transport agent does not require content conversion.
- OnResolvedMessage This event occurs after all the recipients of the message have been resolved and before routing is determined.
- OnRoutedMessage This event occurs after the server routes the message to the next hop and performs content conversion, if required. The server may use a greater amount of resources to process each message in the OnRoutedMessage event than the OnSubmittedMessage event because the server will perform any necessary content conversion and determine the next hop in the route for the message before it executes the code in the OnRoutedMessage event handler.
- OnCategorizedMessage This event occurs after the server performs content conversion on the message.