แก้ไข

แชร์ผ่าน


PeerTransportBindingElement Class

Definition

Caution

PeerChannel feature is obsolete and will be removed in the future.

Defines the binding element used to create a peer message transport channel.

public ref class PeerTransportBindingElement sealed : System::ServiceModel::Channels::TransportBindingElement, System::ServiceModel::Description::IPolicyExportExtension, System::ServiceModel::Description::IWsdlExportExtension
public sealed class PeerTransportBindingElement : System.ServiceModel.Channels.TransportBindingElement, System.ServiceModel.Description.IPolicyExportExtension, System.ServiceModel.Description.IWsdlExportExtension
[System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)]
public sealed class PeerTransportBindingElement : System.ServiceModel.Channels.TransportBindingElement, System.ServiceModel.Description.IPolicyExportExtension, System.ServiceModel.Description.IWsdlExportExtension
type PeerTransportBindingElement = class
    inherit TransportBindingElement
    interface IWsdlExportExtension
    interface IPolicyExportExtension
[<System.Obsolete("PeerChannel feature is obsolete and will be removed in the future.", false)>]
type PeerTransportBindingElement = class
    inherit TransportBindingElement
    interface IWsdlExportExtension
    interface IPolicyExportExtension
Public NotInheritable Class PeerTransportBindingElement
Inherits TransportBindingElement
Implements IPolicyExportExtension, IWsdlExportExtension
Inheritance
PeerTransportBindingElement
Attributes
Implements

Remarks

This transport cannot be used with contracts that have request/reply operations.

Constructors

PeerTransportBindingElement()

Initializes a new default instance of the PeerTransportBindingElement class.

Properties

ListenIPAddress

Gets or sets the IP address on which peer message transports created by this binding element listen.

ManualAddressing

Gets or sets a value that indicates whether manual addressing of the message is required.

(Inherited from TransportBindingElement)
MaxBufferPoolSize

Gets or sets the maximum size, in bytes, of any buffer pools used by the transport.

(Inherited from TransportBindingElement)
MaxReceivedMessageSize

Gets or sets the value that specifies the maximum size, in bytes, of messages sent over transport channels created by this binding element.

Port

Gets or sets the network port on which peer message transport channels created by this binding element listen.

Scheme

Gets the scheme used to indicate the protocol over which messages are transported by channels created by this binding element.

Security

Gets the specific security settings for transport channels created by this binding element.

Methods

BuildChannelFactory<TChannel>(BindingContext)

Creates a channel factory that can be used to create a channel for sending messages.

BuildChannelListener<TChannel>(BindingContext)

Creates a channel listener of the specified type for receiving messages.

CanBuildChannelFactory<TChannel>(BindingContext)

Determines whether a channel factory of the specified type can be built.

CanBuildChannelListener<TChannel>(BindingContext)

Determines whether a channel listener of the specified type can be built.

Clone()

Creates a copy of the current binding element.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetProperty<T>(BindingContext)

Returns a property from the specified BindingContext object.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)

Writes custom peer transport channel elements into the generated metadata for an endpoint.

IWsdlExportExtension.ExportContract(WsdlExporter, WsdlContractConversionContext)

Writes custom peer transport channel elements into the generated WSDL for a contract.

IWsdlExportExtension.ExportEndpoint(WsdlExporter, WsdlEndpointConversionContext)

Writes custom peer transport channel elements into the generated WSDL for an endpoint.

Applies to