NetMessagingBindingExtensionElement NetMessagingBindingExtensionElement Class

Represents an XML element that specifies a configuration of NetMessagingBinding.

Syntax

Declaration

public sealed class NetMessagingBindingExtensionElement : StandardBindingElement, IBindingConfigurationElement, IConfigurationContextProviderInternalPublic NotInheritable Class NetMessagingBindingExtensionElement
    Inherits StandardBindingElement
    Implements IBindingConfigurationElement, IConfigurationContextProviderInternal

Inheritance Hierarchy

Inherited Members

System.ServiceModel.Configuration.StandardBindingElement

, , , , , ,

System.ServiceModel.Configuration.ServiceModelConfigurationElement

System.Configuration.ConfigurationElement

Init()
Init()
, , , , , , , , , ,
Unmerge(ConfigurationElement, ConfigurationElement, System.Configuration.ConfigurationSaveMode)
Unmerge(ConfigurationElement, ConfigurationElement, System.Configuration.ConfigurationSaveMode)
, , , , , , , , , , , , , , , , , , , , , ,

System.Object

, , , ,

Remarks

The NetMessagingBinding and NetMessagingTransportBindingElement allow WCF clients to easily send and receive messages to ServiceBus Messaging Entities (queues, topics, and subscriptions).
These message exchanges will use standard WCF programming model such as IOutputChannel, IInputChannel, IInputSessionChannel, and ReceiveContext.
The NetMessagingTransportBindingElement supports creating IOutputChannel, IInputChannel, IInputChannel+ReceiveContext, IInputSessionChannel, and IInputSessionChannel+ReceiveContext. The sessionful channels (IInputSessionChannel, IInputSessionChannel+ReceiveContext) are for Session/Conversation support.

Constructors summary

Initializes a new instance of the NetMessagingBindingExtensionElement class.

Initializes a new instance of the NetMessagingBindingExtensionElement class using the specified name.

Properties summary

Gets the type of binding element being used.

Gets or sets the number of prefetch.

Gets a ConfigurationPropertyCollection instance that contains a collection of ConfigurationProperty objects that can be attributes or ConfigurationElement objects of this configuration element.

Gets or sets the SessionIdleTimeout.

Gets or sets the transport settings element for the net messaging.

Methods summary

Initializes this binding configuration element with the content of the specified binding.

Called when the content of a specified binding element is applied to this binding configuration element.

Constructors

  • NetMessagingBindingExtensionElement()
    NetMessagingBindingExtensionElement()

    Initializes a new instance of the NetMessagingBindingExtensionElement class.

    public NetMessagingBindingExtensionElement()Public Sub New
  • NetMessagingBindingExtensionElement(String)
    NetMessagingBindingExtensionElement(String)

    Initializes a new instance of the NetMessagingBindingExtensionElement class using the specified name.

    public NetMessagingBindingExtensionElement(string name)Public Sub New(name As String)

    Parameters

Properties

  • BindingElementType
    BindingElementType

    Gets the type of binding element being used.

    protected override Type BindingElementType { get; }Protected Overrides ReadOnly Property BindingElementType As Type

    Property Value

    • The type of binding element being used.

    Overrides

  • PrefetchCount
    PrefetchCount

    Gets or sets the number of prefetch.

    [ConfigurationProperty("prefetchCount", DefaultValue = "-1")]
    public int PrefetchCount { get; set; }<ConfigurationProperty("prefetchCount", DefaultValue:="-1")>
    Public Property PrefetchCount As Integer

    Property Value

    Remarks

    Takes effect on the next receive call to the server

  • Properties
    Properties

    Gets a ConfigurationPropertyCollection instance that contains a collection of ConfigurationProperty objects that can be attributes or ConfigurationElement objects of this configuration element.

    protected override ConfigurationPropertyCollection Properties { get; }Protected Overrides ReadOnly Property Properties As ConfigurationPropertyCollection

    Property Value

    Overrides

  • SessionIdleTimeout
    SessionIdleTimeout

    Gets or sets the SessionIdleTimeout.

    [ConfigurationProperty("sessionIdleTimeout", DefaultValue = "00:01:00")]
    [PositiveTimeSpanValidator]
    public TimeSpan SessionIdleTimeout { get; set; }<ConfigurationProperty("sessionIdleTimeout", DefaultValue:="00:01:00")>
    <PositiveTimeSpanValidator>
    Public Property SessionIdleTimeout As TimeSpan

    Property Value

    • If an IInputSessionChannel.TryReceive operation doesn’t receive any message within this TimeSpan then the channel will indicate end of session.

  • TransportSettings
    TransportSettings

    Gets or sets the transport settings element for the net messaging.

    [ConfigurationProperty("transportSettings", IsRequired = false)]
    public NetMessagingTransportSettingsElement TransportSettings { get; }<ConfigurationProperty("transportSettings", IsRequired:=False)>
    Public ReadOnly Property TransportSettings As NetMessagingTransportSettingsElement

    Property Value

Methods

Details

Namespace

Microsoft.ServiceBus.Messaging.Configuration

Assembly

Microsoft.ServiceBus.dll

See Also