ConnectionOrientedTransportBindingElement 类

定义

一个抽象类,可以向基 TransportBindingElement 补充面向连接的传输(如 TCP 和命名管道)所通用的其他属性。

public ref class ConnectionOrientedTransportBindingElement abstract : System::ServiceModel::Channels::TransportBindingElement
public ref class ConnectionOrientedTransportBindingElement abstract : System::ServiceModel::Channels::TransportBindingElement, System::ServiceModel::Description::IPolicyExportExtension, System::ServiceModel::Description::IWsdlExportExtension
public abstract class ConnectionOrientedTransportBindingElement : System.ServiceModel.Channels.TransportBindingElement
public abstract class ConnectionOrientedTransportBindingElement : System.ServiceModel.Channels.TransportBindingElement, System.ServiceModel.Description.IPolicyExportExtension, System.ServiceModel.Description.IWsdlExportExtension
type ConnectionOrientedTransportBindingElement = class
    inherit TransportBindingElement
type ConnectionOrientedTransportBindingElement = class
    inherit TransportBindingElement
    interface IWsdlExportExtension
    interface IPolicyExportExtension
type ConnectionOrientedTransportBindingElement = class
    inherit TransportBindingElement
    interface IPolicyExportExtension
    interface IWsdlExportExtension
Public MustInherit Class ConnectionOrientedTransportBindingElement
Inherits TransportBindingElement
Public MustInherit Class ConnectionOrientedTransportBindingElement
Inherits TransportBindingElement
Implements IPolicyExportExtension, IWsdlExportExtension
继承
ConnectionOrientedTransportBindingElement
派生
实现

注解

该类已编入文档,以全面了解传输层次结构,希望不要对其进行直接调用。 构造函数供内部使用,避免直接构造和调用。 该绑定元素的公共属性可从派生类 与 中调用。

属性

ChannelInitializationTimeout

获取或设置确定通道在断开连接前可处于初始化状态的最长时间的 TimeSpan

ConnectionBufferSize

获取或设置用于从客户端或服务传输网络上的序列化消息块的缓冲区大小。

HostNameComparisonMode

获取或设置一个值,该值指示在对 URI 进行匹配时,是否使用主机名来访问服务。

ManualAddressing

获取或设置一个值,该值指示是否要求对消息进行手动寻址。

(继承自 TransportBindingElement)
MaxBufferPoolSize

获取或设置传输消息使用的任何缓冲池的最大字节大小。

(继承自 TransportBindingElement)
MaxBufferSize

获取或设置要使用的缓冲区的最大大小。 对于经过流处理的消息,该值最少应为以缓冲模式读取的消息头的最大可能大小。

MaxOutputDelay

获取或设置消息块或完整消息在发出之前可以在内存中保持缓冲的最大时间间隔。

MaxPendingAccepts

获取或设置服务可等待许可证处理至服务的传入连接的最大通道数量。

MaxPendingConnections

获取或设置在服务上等待调度的最大连接数。

MaxReceivedMessageSize

获取或设置能接收的最大可允许消息大小(以字节为单位)。

(继承自 TransportBindingElement)
Scheme

获取传输的 URI 方案。

(继承自 TransportBindingElement)
TransferMode

获取或设置一个值,该值指示通过面向连接的传输对消息进行缓冲还是流处理。

方法

BuildChannelFactory<TChannel>(BindingContext)

初始化通道工厂,用于生成来自绑定上下文中指定类型的通道。

(继承自 BindingElement)
BuildChannelListener<TChannel>(BindingContext)

初始化通道侦听器,用于接受绑定上下文中指定类型的通道。

(继承自 BindingElement)
CanBuildChannelFactory<TChannel>(BindingContext)

确定是否可生成指定类型的通道工厂。

CanBuildChannelListener<TChannel>(BindingContext)

确定是否可生成指定类型的通道侦听器。

CanBuildChannelListener<TChannel>(BindingContext)

返回一个值,该值指示绑定元素是否可以为特定类型的通道生成侦听器。

(继承自 BindingElement)
Clone()

在派生类中重写时,返回绑定元素对象的副本。

(继承自 BindingElement)
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetProperty<T>(BindingContext)

从绑定堆栈中获取属性(如果存在)。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ShouldSerializeMaxPendingAccepts()

指示连接针对的传输绑定元素是否应序列化最长等待接受。

ShouldSerializeMaxPendingConnections()

指示连接针对的传输绑定元素是否应序列化最长等待连接。

ToString()

返回表示当前对象的字符串。

(继承自 Object)

显式接口实现

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

导出有关绑定的自定义策略断言。

IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext)

为协定将自定义 Web 服务描述语言 (WSDL) 元素写入到生成的 WSDL 中。

IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

为终结点将自定义 Web 服务描述语言 (WSDL) 元素写入到生成的 WSDL 中。

适用于