System.Runtime.Remoting.Channels 命名空间

System.Runtime.Remoting.Channels 命名空间包含支持并处理信道和信道接收器的类,这些信道和信道接收器在客户端调用远程对象上的方法时用作传输媒体。 The System.Runtime.Remoting.Channels namespace contains classes that support and handle channels and channel sinks, which are used as the transport medium when a client calls a method on a remote object.

BaseChannelObjectWithProperties

提供信道对象的基实现,该对象要向其属性公开字典接口。Provides a base implementation of a channel object that exposes a dictionary interface to its properties.

BaseChannelSinkWithProperties

提供希望向其属性公开字典接口的信道接收器的基实现。Provides a base implementation for channel sinks that want to expose a dictionary interface to their properties.

BaseChannelWithProperties

提供希望向其属性公开字典接口的信道的基实现。Provides a base implementation for channels that want to expose a dictionary interface to their properties.

BinaryClientFormatterSink

为使用 BinaryFormatter 的客户端格式化程序接收器提供实现。Provides the implementation for a client formatter sink that uses the BinaryFormatter.

BinaryClientFormatterSinkProvider

为二进制客户端格式化程序接收器提供程序提供实现。Provides the implementation for the binary client formatter sink provider.

BinaryServerFormatterSink

为使用 BinaryFormatter 的服务器格式化程序接收器提供实现。Provides the implementation for a server formatter sink that uses the BinaryFormatter.

BinaryServerFormatterSinkProvider

为使用 BinaryFormatter 的服务器格式化程序信道接收器提供程序提供实现。Provides the implementation for the server formatter channel sink provider that uses the BinaryFormatter.

ChannelDataStore

存储远程处理信道的信道数据。Stores channel data for the remoting channels.

ChannelServices

提供帮助进行远程处理信道注册、解析和 URL 发现的静态方法。Provides static methods to aid with remoting channel registration, resolution, and URL discovery. 此类不能被继承。This class cannot be inherited.

ClientChannelSinkStack

持有异步消息响应解码过程中必须调用的客户端信道接收器堆栈。Holds the stack of client channel sinks that must be invoked during an asynchronous message response decoding.

CommonTransportKeys

与通道所使用的公共值关联的传输密钥。The transport keys associated with common values used by the channels.

ServerChannelSinkStack

持有服务器信道接收器的堆栈。Holds the stack of server channel sinks.

SinkProviderData

为接收器提供程序存储接收器提供程序数据。Stores sink provider data for sink providers.

SoapClientFormatterSink

为使用 SoapFormatter 的客户端格式化程序接收器提供实现。Provides the implementation for a client formatter sink that uses the SoapFormatter.

SoapClientFormatterSinkProvider

为客户端格式化程序接收器提供程序提供实现。Provides the implementation for a client formatter sink provider.

SoapServerFormatterSink

为使用 SoapFormatter 的服务器格式化程序接收器提供实现。Provides the implementation for a server formatter sink that uses the SoapFormatter.

SoapServerFormatterSinkProvider

为使用 SoapFormatter 的服务器格式化程序信道接收器提供程序提供实现。Provides the implementation for a server formatter channel sink provider that uses the SoapFormatter.

TransportHeaders

存储在信道接收器中使用的标头的集合。Stores a collection of headers used in the channel sinks.

接口

IAuthorizeRemotingConnection

IAuthorizeRemotingConnection 接口提供了一些方法,可根据客户端的网络地址和用户标识来指示客户端是否被授权连接至当前信道。The IAuthorizeRemotingConnection interface provides methods that indicate whether a client is authorized to connect on the current channel, based on the client's network address and user identity.

IChannel

为跨远程处理边界的消息提供管道。Provides conduits for messages that cross remoting boundaries.

IChannelDataStore

存储远程处理信道的信道数据。Stores channel data for the remoting channels.

IChannelReceiver

为接收器信道提供所需的函数和属性。Provides required functions and properties for the receiver channels.

IChannelReceiverHook

指示实现信道要挂接到外部侦听器服务。Indicates that the implementing channel wants to hook into the outside listener service.

IChannelSender

为发送方信道提供所需的函数和属性。Provides required functions and properties for the sender channels.

IChannelSinkBase

为信道接收器提供基接口。Provides the base interface for channel sinks.

IClientChannelSink

为客户端信道接收器提供所需的函数和属性。Provides required functions and properties for client channel sinks.

IClientChannelSinkProvider

为远程处理消息从其流过的客户端信道创建客户端信道接收器。Creates client channel sinks for the client channel through which remoting messages flow.

IClientChannelSinkStack

为客户端信道接收器的堆栈提供功能,在异步消息响应解码过程中必须调用这些客户端信道接收器。Provides functionality for a stack of client channel sinks that must be invoked during an asynchronous message response decoding.

IClientFormatterSink

将接收器标记为将消息序列化为流的客户端格式化程序接收器。Marks a sink as a client formatter sink that serializes messages into a stream.

IClientFormatterSinkProvider

将客户端信道接收器提供程序标记为客户端格式化程序接收器提供程序。Marks a client channel sink provider as a client formatter sink provider.

IClientResponseChannelSinkStack

为异步消息响应解码过程中必须调用的客户端响应信道接收器堆栈提供堆栈功能。Provides the stack functionality for a stack of client response channel sinks that must be invoked during an asynchronous message response decoding.

ISecurableChannel

ISecurableChannel 包含一个属性 IsSecured,它获取或设置一个布尔值,该值指示当前信道是否安全。The ISecurableChannel contains one property, IsSecured, which gets or sets a Boolean value that indicates whether the current channel is secure.

IServerChannelSink

提供用于安全和传输接收器的方法。Provides methods used for security and transport sinks.

IServerChannelSinkProvider

为远程处理消息从其流过的服务器信道创建服务器信道接收器。Creates server channel sinks for the server channel through which remoting messages flow.

IServerChannelSinkStack

为服务器信道接收器堆栈提供堆栈功能。Provides the stack functionality for a stack of server channel sinks.

IServerFormatterSinkProvider

将服务器信道接收器提供程序标记为服务器格式化程序接收器提供程序。Marks a server channel sink provider as a server formatter sink provider.

IServerResponseChannelSinkStack

为服务器响应信道接收器的堆栈提供堆栈功能。Provides the stack functionality for a stack of server response channel sinks.

ITransportHeaders

存储在信道接收器中使用的标头的集合。Stores a collection of headers used in the channel sinks.

枚举

BinaryServerFormatterSink.Protocol

指定与 BinaryServerFormatterSink 类一起使用的协议。Specifies the protocol to use with the BinaryServerFormatterSink class.

ServerProcessing

指示服务器消息处理的状态。Indicates the status of the server message processing.

SoapServerFormatterSink.Protocol

指定与 SoapServerFormatterSink 类一起使用的协议。Specifies the protocol to use with the SoapServerFormatterSink class.

SocketCachePolicy

指定从远程处理客户端所维护的缓存中移除客户端的策略。Specifies the policy for removing clients from the cache maintained by remoting clients.

注解

信道是跨越远程处理边界(无论是在应用程序域、进程还是计算机之间)在应用程序之间传递消息的对象。Channels are objects that transport messages between applications across remoting boundaries, whether between application domains, processes, or computers. 信道可以在终结点侦听入站消息,向其他终结点发送出站消息,或者进行这两种操作。A channel can listen on an endpoint for inbound messages, send outbound messages to another endpoint, or both. 这使您可以插入范围广泛的协议(即使公共语言运行库不在该信道的另一端)。This enables you to plug in a wide range of protocols, even if the common language runtime is not at the other end of the channel.

通道发送每个对象在发送前或接收消息之后的信道接收器对象链。Channels send each object along a chain of channel sink objects prior to sending or after receiving a message. 此接收器链包含所需的基本信道功能,例如,传输或堆栈生成器接收器的接收器,但是可以自定义信道接收器链以执行特殊任务与消息或流。This sink chain contains sinks required for basic channel functionality, such as transport or stack builder sinks, but you can customize the channel sink chain to perform special tasks with a message or a stream. 每个链中的每个接收器接收对象、 执行特定操作,并将其传递到下一个接收器链中。Each sink in each chain receives the object, performs a specific operation, and passes it on to the next sink in the chain. 不存在规则的确切对象收到的消息接收器必须传递到下一个接收器,尽管这通常是这种情况。There is no rule that the exact object received by a message sink must be passed on to the next sink, though this will often be the case.

有关详细信息,请参阅通道接收器和接收器链For more information, see Channels and Sinks and Sink Chains.