System.Runtime.Remoting.Channels.IClientResponseChannelSinkStack Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Channels
Summary
Provides the stack functionality for a stack of client response channel sinks that must be invoked during an asynchronous message response decoding.
C# Syntax:
public interface IClientResponseChannelSinkStack
See also:
System.Runtime.Remoting.Channels Namespace

System.Runtime.Remoting.Channels.IClientResponseChannelSinkStack Member List:

Public Methods
AsyncProcessResponse Requests asynchronous processing of a method call on the sinks in the current sink stack.
DispatchException Dispatches the specified exception on the reply sink.
DispatchReplyMessage Dispatches the specified reply message on the reply sink.

System.Runtime.Remoting.Channels.IClientResponseChannelSinkStack Member Details

Method: AsyncProcessResponse(
   ITransportHeaders headers,
   Stream stream
)
Summary
Requests asynchronous processing of a method call on the sinks in the current sink stack.
C# Syntax:
void AsyncProcessResponse(
   ITransportHeaders headers,
   Stream stream
);
Parameters:

headers

The headers retrieved from the server response stream.

stream

The stream coming back from the transport sink.

Exceptions
Exception Type Condition
RemotingException The current sink stack is empty.
Remarks
The IClientResponseChannelSinkStack.AsyncProcessResponse method initializes asynchronous processing on the top sink in the current sink stack. For additional information, see IClientChannelSink.AsyncProcessResponse.

Return to top


Method: DispatchException(
   Exception e
)
Summary
Dispatches the specified exception on the reply sink.
C# Syntax:
void DispatchException(
   Exception e
);
Parameters:

e

The exception to dispatch to the server.

Remarks
The IClientResponseChannelSinkStack.DispatchException method dispatches the specified exception to the server through the reply sink specified in the constructor of the current sink stack. If the current sink stack was created without a reply sink, the exception is not transmitted, and no new exception is thrown.

Return to top


Method: DispatchReplyMessage(
   IMessage msg
)
Summary
Dispatches the specified reply message on the reply sink.
C# Syntax:
void DispatchReplyMessage(
   IMessage msg
);
Parameters:

msg

The IMessage to dispatch.

Remarks
The IClientResponseChannelSinkStack.DispatchReplyMessage method dispatches the specified message to the server through the reply sink specified in the constructor of the current sink stack. If the current sink stack was created without a reply sink, the message is not transmitted, and no new exception is thrown.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.