Table of Contents

Class NetMessagingTransportSettings

Namespace
Microsoft.ServiceBus.Messaging
Assembly
Microsoft.ServiceBus.dll

Represents .NET messaging transport settings.

public sealed class NetMessagingTransportSettings
Inheritance
NetMessagingTransportSettings
Inherited Members

Examples

// Create settings for the MessagingFactory (for runtime operations)
MessagingFactorySettings factorySettings = 
new MessagingFactorySettings()
{
NetMessagingTransportSettings = new NetMessagingTransportSettings(),
Credential = 
TransportClientCredentialBase.CreateSharedSecretCredential(IssuerName, IssuerKey),
};

// Create the MessagingFactory
MessagingFactory factory = MessagingFactory.Create(myServiceBusNamespace, factorySettings);

// Create queue client

Remarks

This class provides Net Messaging Protocol (SBMP) specific configuration support for the NetMessagingBinding.MessagingFactorySettings property.
It exposes to configuration the settings available on the MessagingFactorySettings.

Constructors

NetMessagingTransportSettings()

Initializes a new instance of the NetMessagingTransportSettings class.

public NetMessagingTransportSettings()

Properties

BatchFlushInterval

Gets or sets the batch flush interval.

public TimeSpan BatchFlushInterval { get; set; }

Property Value

TimeSpan

The batch flush interval.

EnableRedirect

Gets a value that indicates whether the message redirect is enabled.

public bool EnableRedirect { get; set; }

Property Value

bool

true if the message redirect is enabled; otherwise, false.

LeaseTimeout

Gets or sets the lease timeout value for the LeaseTimeout property within the System.ServiceModel.Channels.TcpTransportBindingElement.ConnectionPoolSettings class. Default is 5 minutes.

public TimeSpan LeaseTimeout { get; set; }

Property Value

TimeSpan

Exceptions

ArgumentOutOfRangeException

throw if value is less than TimeSpan.Zero or larger than Int32.MaxValue milliseconds

Methods

Clone()

Makes a deep copy of this object.

public object Clone()

Returns

object

A copy of this object.

See Also