NetMessagingTransportSettings NetMessagingTransportSettings Class

Definition

Represents .NET messaging transport settings.

public sealed class NetMessagingTransportSettings : ITransportSettings, IServiceBusSecuritySettingsPublic NotInheritable Class NetMessagingTransportSettings
    Implements ITransportSettings, IServiceBusSecuritySettings
Inheritance
NetMessagingTransportSettingsNetMessagingTransportSettings

Inherited Members

System.Object

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() NetMessagingTransportSettings()

Initializes a new instance of the NetMessagingTransportSettings class.

public NetMessagingTransportSettings()Public Sub New

Properties

BatchFlushInterval BatchFlushInterval

Gets or sets the batch flush interval.

public TimeSpan BatchFlushInterval { get; set; }Public Property BatchFlushInterval As TimeSpan
Value
TimeSpan TimeSpan

The batch flush interval.

EnableRedirect EnableRedirect

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

public bool EnableRedirect { get; set; }Public Property EnableRedirect As Boolean
Value
Boolean Boolean

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

LeaseTimeout LeaseTimeout

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

public TimeSpan LeaseTimeout { get; set; }Public Property LeaseTimeout As TimeSpan
Exceptions

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

Methods

Clone() Clone()

Makes a deep copy of this object.

public object Clone()Public Function Clone As Object
Returns

A copy of this object.

See Also