public interface IMessageSink
|
A remote method call is a message that goes from the client end to the server end and possibly back again. As it crosses remoting boundaries on the way, the remote method call passes through a chain of IMessageSink objects. Each sink in the chain receives the message object, performs a specific operation, and delegates to the next sink in the chain. The proxy object contains a reference to the first IMessageSink it needs to use to start off the chain.
For asynchronous calls, at the time of delegation, each sink provides a reply sink (another IMessageSink) that will be called by the next sink when the reply is on its way back.
Different types of sinks perform different operations, depending on the type of message object received. For example, one sink could cause a lock to be taken, another could enforce call security, another could perform flow call control and reliability services, and yet another could transport the call to a different AppDomain, process, or computer. Two or more message sinks in the chain can interact with each other in regard to each specific action.
NextSink | Read-only Gets the next message sink in the sink chain. |
AsyncProcessMessage | Asynchronously processes the given message. |
SyncProcessMessage | Synchronously processes the given message. |
IMessageSink NextSink {get;}
|
IMessageCtrl AsyncProcessMessage( |
msg
replySink
msg