NetPeerTcpBinding 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
PeerChannel feature is obsolete and will be removed in the future.
为对等网络应用程序提供安全绑定。
public ref class NetPeerTcpBinding : System::ServiceModel::Channels::Binding, System::ServiceModel::Channels::IBindingRuntimePreferences
public class NetPeerTcpBinding : System.ServiceModel.Channels.Binding, System.ServiceModel.Channels.IBindingRuntimePreferences
[System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)]
public class NetPeerTcpBinding : System.ServiceModel.Channels.Binding, System.ServiceModel.Channels.IBindingRuntimePreferences
type NetPeerTcpBinding = class
inherit Binding
interface IBindingRuntimePreferences
[<System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)>]
type NetPeerTcpBinding = class
inherit Binding
interface IBindingRuntimePreferences
Public Class NetPeerTcpBinding
Inherits Binding
Implements IBindingRuntimePreferences
- 继承
- 属性
- 实现
注解
该 NetPeerTcpBinding 绑定支持创建使用 TCP 级对等网格基础结构的对等网络应用程序。
每个 PeerNode 实例可以托管使用此绑定类型定义的多个对等通道。 使用此类型的已配置实例生成的通道工厂可用于生成对等通道。 对等通道工厂可以生成仅输入(实现)、仅输出(实现 IInputChannel)和双工(实现 IOutputChannel)的 IDuplexChannel对等通道。
这是Windows通信框架(WCF)提供的标准绑定之一。 可以在命令性代码中使用,也可以在应用程序的相应 XML 配置文件中指定。 建议的过程是使用配置值定义绑定,而不是使用基于代码的方法,除非在某些高级方案中,必须将配置值设置为服务初始化。
构造函数
| 名称 | 说明 |
|---|---|
| NetPeerTcpBinding() |
已过时.
初始化类的新默认实例 NetPeerTcpBinding 。 |
| NetPeerTcpBinding(String) |
已过时.
使用指定的配置名称初始化类的新实例 NetPeerTcpBinding 。 |
属性
| 名称 | 说明 |
|---|---|
| CloseTimeout |
已过时.
获取或设置在传输引发异常之前连接要关闭的时间间隔。 (继承自 Binding) |
| EnvelopeVersion |
已过时.
获取用于此绑定的 SOAP 版本。 |
| IsPnrpAvailable |
已过时.
获取一个值,该值指示是否在计算机上安装和提供 PNRP 服务。 |
| ListenIPAddress |
已过时.
获取或设置本地对等节点用于侦听的 IP 地址。 |
| MaxBufferPoolSize |
已过时.
获取或设置用于对等 TCP 缓冲区的内存池的最大大小(以字节为单位)。 |
| MaxReceivedMessageSize |
已过时.
获取或设置此绑定创建的对等通道处理的 TCP 消息的最大大小(以字节为单位)。 |
| MessageVersion |
已过时.
获取使用绑定配置的客户端和服务使用的消息版本。 (继承自 Binding) |
| Name |
已过时.
获取或设置绑定的名称。 (继承自 Binding) |
| Namespace |
已过时.
获取或设置绑定的 XML 命名空间。 (继承自 Binding) |
| OpenTimeout |
已过时.
获取或设置在传输引发异常之前为连接打开提供的时间间隔。 (继承自 Binding) |
| Port |
已过时.
获取或设置要绑定的网络端口。 |
| ReaderQuotas |
已过时.
获取或设置 XmlDictionaryReaderQuotas 与此绑定关联的项。 |
| ReceiveTimeout |
已过时.
获取或设置连接在删除之前连接可以保持非活动状态的时间间隔,在此期间不会收到任何应用程序消息。 (继承自 Binding) |
| Resolver |
已过时.
PeerResolver获取此绑定实例用于将对等网格 ID 解析为对等网格中节点的终结点 IP 地址。 |
| Scheme |
已过时.
获取用于与此绑定关联的传输协议的 URI 方案。 |
| Security |
已过时.
获取或设置在由此绑定创建的对等通道上设置的安全性。 |
| SendTimeout |
已过时.
获取或设置传输引发异常之前为写入操作完成提供的时间间隔。 (继承自 Binding) |
方法
显式接口实现
| 名称 | 说明 |
|---|---|
| IBindingRuntimePreferences.ReceiveSynchronously |
已过时.
获取一个值,该值指示此绑定创建的对等通道的传入请求是同步处理还是异步处理。 |