BinaryServerFormatterSink 类
定义
为使用 BinaryFormatter 的服务器格式化程序接收器提供实现。Provides the implementation for a server formatter sink that uses the BinaryFormatter.
public ref class BinaryServerFormatterSink : System::Runtime::Remoting::Channels::IServerChannelSink
public class BinaryServerFormatterSink : System.Runtime.Remoting.Channels.IServerChannelSink
type BinaryServerFormatterSink = class
interface IServerChannelSink
interface IChannelSinkBase
Public Class BinaryServerFormatterSink
Implements IServerChannelSink
- 继承
-
BinaryServerFormatterSink
- 实现
注解
请求流通过服务器信道接收器从服务器传输接收器传播到适当的格式化程序接收器。The request stream propagates from the server transport sink through the server channel sinks until it reaches the appropriate formatter sink. 格式化程序接收器对消息进行反序列化,并通过管道传递该消息。The formatter sink deserializes the message and passes it through the pipeline. 特殊的调度接收器通过方法插入到信道接收器链的末尾 ChannelServices.CreateServerChannelSinkChain ,该方法由服务器通道调用以创建服务器信道接收器链。A special dispatch sink is inserted at the end of the channel sink chain by the ChannelServices.CreateServerChannelSinkChain method, which is called by server channels to create the server channel sink chains. 当消息到达调度接收器时,调度接收器将消息传递到远程处理基础结构。When the message reaches the dispatch sink, the dispatch sink passes the message to the remoting infrastructure.
下表显示了可为当前接收器提供程序指定的接收器配置属性。The following table shows the sink configuration properties that can be specified for the current sink provider.
| PropertyProperty | 描述Description |
|---|---|
includeVersions |
指定格式化程序是否将包含版本信息。Specifies whether the formatter will include versioning information. 值 true 或 false 。Values true or false. |
strictBinding |
指示在仅使用类型名称和程序集名称(无版本信息)之前,接收格式化程序首先试着使用完整的版本信息(如果有的话)来标识类型。Indicates that a receiving formatter will first try to identify the type using complete version information if it exists before using only the type name and assembly name without version information. 值 true 或 false 。Values true or false. 系统提供的两个格式化程序的默认值均为 false。The default for both system-provided formatters is false. |
typeFilterLevel |
一个字符串值,指定服务器信道尝试的自动反序列化级别。A string value that specifies the level of automatic deserialization that a server channel attempts. 支持的值为 Low 默认) 和 (Full 。Supported values are Low (the default) and Full. 有关反序列化级别的详细信息,请参阅 .NET Framework 远程处理中的自动反序列化。For details about deserialization levels, see Automatic Deserialization in .NET Framework Remoting.只有以下平台上的 .NET Framework 版本1.1 支持此属性: Windows 98、Windows NT 4.0、Windows Millennium Edition、Windows 2000、Windows XP Home Edition、Windows XP Professional 和 Windows Server 2003 系列。This property is supported only by the .NET Framework version 1.1 on the following platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, and Windows Server 2003 family. |
重要
对不受信任的数据或不安全的通道使用此对象的实例是一种安全风险。Using an instance of this object with untrusted data or across an unsecure channel is a security risk. 仅将此对象用于受信任的数据,并在安全通道中使用。Use this object only with trusted data and across a secure channel. 有关详细信息,请参阅数据验证。For more information, see Data Validation.
构造函数
| BinaryServerFormatterSink(BinaryServerFormatterSink+Protocol, IServerChannelSink, IChannelReceiver) |
初始化 BinaryServerFormatterSink 类的新实例。Initializes a new instance of the BinaryServerFormatterSink class. |
属性
| NextChannelSink |
获取接收器链中的下一个 IServerChannelSink。Gets the next IServerChannelSink in the sink chain. |
| Properties |
获取当前信道接收器属性的 IDictionary。Gets a IDictionary of properties for the current channel sink. |
| TypeFilterLevel |
获取或设置 |
方法
| AsyncProcessResponse(IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders, Stream) |
请求处理来自方法调用的异步发送的响应。Requests processing of the response from a method call that is sent asynchronously. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetResponseStream(IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders) |
返回提供的响应消息将序列化到其上的 Stream。Returns the Stream onto which the provided response message is to be serialized. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ProcessMessage(IServerChannelSinkStack, IMessage, ITransportHeaders, Stream, IMessage, ITransportHeaders, Stream) |
请求从当前接收器处理消息。Requests message processing from the current sink. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |