BinaryServerFormatterSink 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供使用 的服务器格式化程序接收器的 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
- 实现
注解
请求流通过服务器通道接收器从服务器传输接收器传播,直到它到达相应的格式化程序接收器。 格式化程序接收器反序列化消息,并通过管道传递消息。 此方法在 ChannelServices.CreateServerChannelSinkChain 通道接收器链的末尾插入了一个特殊的调度接收器,该方法由服务器通道调用,以创建服务器通道接收器链。 当消息到达调度接收器时,调度接收器会将消息传递给远程处理基础结构。
下表显示了可为当前接收器提供程序指定的接收器配置属性。
| 财产 | 说明 |
|---|---|
includeVersions |
指定格式化程序是否包含版本控制信息。 值 true 或 false。 |
strictBinding |
指示接收格式化程序将首先尝试使用完整的版本信息来标识类型(如果它存在)之前,仅使用类型名称和程序集名称而不使用版本信息。 值 true 或 false。 两个系统提供格式化程序的默认为 false。 |
typeFilterLevel |
一个字符串值,该值指定服务器通道尝试的自动反序列化级别。 支持的值是 Low (默认值) 和 Full。 |
重要
将此对象的实例与不受信任的数据或跨不安全通道使用是一种安全风险。 仅将此对象与受信任的数据一起使用,并跨安全通道使用。 有关详细信息,请参阅验证所有输入。
构造函数
| 名称 | 说明 |
|---|---|
| BinaryServerFormatterSink(BinaryServerFormatterSink+Protocol, IServerChannelSink, IChannelReceiver) |
初始化 BinaryServerFormatterSink 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| NextChannelSink |
获取接收器链中的下一个 IServerChannelSink 。 |
| Properties |
IDictionary获取当前通道接收器的属性。 |
| TypeFilterLevel |
获取或设置 |
方法
| 名称 | 说明 |
|---|---|
| AsyncProcessResponse(IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders, Stream) |
从异步发送的方法调用处理响应的请求。 |
| Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
| GetHashCode() |
用作默认哈希函数。 (继承自 Object) |
| GetResponseStream(IServerResponseChannelSinkStack, Object, IMessage, ITransportHeaders) |
返回 Stream 要对其序列化提供的响应消息。 |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| ProcessMessage(IServerChannelSinkStack, IMessage, ITransportHeaders, Stream, IMessage, ITransportHeaders, Stream) |
从当前接收器请求消息处理。 |
| ToString() |
返回一个表示当前对象的字符串。 (继承自 Object) |