TcpRelayTransportBindingElement TcpRelayTransportBindingElement Class

Represents the binding element for the TCP transport relay.

Syntax

Declaration

public class TcpRelayTransportBindingElement : ConnectionOrientedTransportBindingElement, IPolicyExportExtensionPublic Class TcpRelayTransportBindingElement
    Inherits ConnectionOrientedTransportBindingElement
    Implements IPolicyExportExtension

Inheritance Hierarchy

Inherited Members

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Constructors summary

Initializes a new instance of the TcpRelayTransportBindingElement class.

Initializes a new instance of the TcpRelayTransportBindingElement class using the specified relay client authentication type.

Initializes a new instance of the TcpRelayTransportBindingElement class using the specified relay binding element.

Properties summary

Gets or sets the connection mode.

Gets the connection pool settings for the current instance.

Gets or sets whether the binding element is dynamic.

Gets or sets the type of authentication used by the service client.

Gets the URI scheme for the transport.

Methods summary

Creates a channel factory that can be used to create a channel.

Creates a channel listener of the specified type.

Creates a copy of the current binding element.

Returns a specified object from the binding context.

Explicit Interface Implementations summary

Constructors

  • TcpRelayTransportBindingElement()
    TcpRelayTransportBindingElement()

    Initializes a new instance of the TcpRelayTransportBindingElement class.

    public TcpRelayTransportBindingElement()Public Sub New
  • TcpRelayTransportBindingElement(RelayClientAuthenticationType)
    TcpRelayTransportBindingElement(RelayClientAuthenticationType)

    Initializes a new instance of the TcpRelayTransportBindingElement class using the specified relay client authentication type.

    public TcpRelayTransportBindingElement(RelayClientAuthenticationType relayClientAuthenticationType)Public Sub New(relayClientAuthenticationType As RelayClientAuthenticationType)

    Parameters

  • TcpRelayTransportBindingElement(TcpRelayTransportBindingElement)
    TcpRelayTransportBindingElement(TcpRelayTransportBindingElement)

    Initializes a new instance of the TcpRelayTransportBindingElement class using the specified relay binding element.

    protected TcpRelayTransportBindingElement(TcpRelayTransportBindingElement elementToBeCloned)Protected Sub New(elementToBeCloned As TcpRelayTransportBindingElement)

    Parameters

Properties

  • ConnectionMode
    ConnectionMode

    Gets or sets the connection mode.

    public TcpRelayConnectionMode ConnectionMode { get; set; }Public Property ConnectionMode As TcpRelayConnectionMode

    Property Value

  • ConnectionPoolSettings
    ConnectionPoolSettings

    Gets the connection pool settings for the current instance.

    public SocketConnectionPoolSettings ConnectionPoolSettings { get; }Public ReadOnly Property ConnectionPoolSettings As SocketConnectionPoolSettings

    Property Value

  • IsDynamic
    IsDynamic

    Gets or sets whether the binding element is dynamic.

    public bool IsDynamic { get; set; }Public Property IsDynamic As Boolean

    Property Value

    • true if the binding element is dynamic; otherwise, false.

  • RelayClientAuthenticationType
    RelayClientAuthenticationType

    Gets or sets the type of authentication used by the service client.

    public RelayClientAuthenticationType RelayClientAuthenticationType { get; set; }Public Property RelayClientAuthenticationType As RelayClientAuthenticationType

    Property Value

  • Scheme
    Scheme

    Gets the URI scheme for the transport.

    public override string Scheme { get; }Public Overrides ReadOnly Property Scheme As String

    Property Value

    • Returns the URI scheme for the transport, which is “TCP”.

Methods

  • BuildChannelFactory<TChannel>(BindingContext)
    BuildChannelFactory(Of TChannel)(BindingContext)

    Creates a channel factory that can be used to create a channel.

    public override IChannelFactory<TChannel> BuildChannelFactory<TChannel>(BindingContext context)Public Overrides Function BuildChannelFactory(Of TChannel)(context As BindingContext) As IChannelFactory(Of TChannel)

    Parameters

    • context

      Describes the bindings, behaviors, contracts, and other information required to create the channel factory.

    Returns

    Exceptions

    • When Transport protection is enabled and the Connection Mode is set to either Hybrid or Direct.This member is unlikely to be used directly, but may be used when creating a custom binding.For more information, see Creating a Custom AppFabric Service Bus Binding.

  • BuildChannelListener<TChannel>(BindingContext)
    BuildChannelListener(Of TChannel)(BindingContext)

    Creates a channel listener of the specified type.

    public override IChannelListener<TChannel> BuildChannelListener<TChannel>(BindingContext context)where TChannel : class, IChannelPublic Overrides Function BuildChannelListener(Of TChannel As {Class, IChannel})(context As BindingContext) As IChannelListener(Of TChannel)

    Parameters

    • context

      Describes the bindings, behaviors, contracts, and other information required to create the channel factory.

    Returns

    Exceptions

  • Clone()
    Clone()

    Creates a copy of the current binding element.

    public override BindingElement Clone()Public Overrides Function Clone As BindingElement

    Returns

  • GetProperty<T>(BindingContext)
    GetProperty(Of T)(BindingContext)

    Returns a specified object from the binding context.

    public override T GetProperty<T>(BindingContext context)where T : classPublic Overrides Function GetProperty(Of T As Class)(context As BindingContext) As T

    Parameters

    Returns

    • T
      T

      A binding element that contains the specified object, or null if not found.

Explicit Interface Implementations

  • IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)
    System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy(MetadataExporter, PolicyConversionContext)
    void IPolicyExportExtension.ExportPolicy(MetadataExporter exporter, PolicyConversionContext context)Sub System.ServiceModel.Description.IPolicyExportExtension.ExportPolicy(exporter As MetadataExporter, context As PolicyConversionContext) Implements IPolicyExportExtension.ExportPolicy

    Parameters

Details

Assembly

Microsoft.ServiceBus.dll