Implementing a Custom Channel Sink
Request and response messages pass from one end of a sink chain to the other. During this traversal, sinks have the opportunity to do work based on the message information. By creating a custom sink, we can hook ourselves into the sink chain and gain access to every message before transmission and after receipt. But custom sinks aren’t limited to just manipulating messages. A custom sink could perform some action based on the contents of the message. Finally, custom sinks don’t have to be symmetric, so you’re not required to have a sink on both the server and client. The following real-world uses for custom sinks should help you gain an understanding of their power:
Encryption sink
Would encrypt all messages ...
Get Microsoft® .NET Remoting now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.