NetMessagingTransportSettings NetMessagingTransportSettings Class

Definition

Represents .NET messaging transport settings.

public sealed class NetMessagingTransportSettings
Public NotInheritable Class NetMessagingTransportSettings
Inheritance
NetMessagingTransportSettingsNetMessagingTransportSettings

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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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

        

        // 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.

Properties

BatchFlushInterval BatchFlushInterval

Gets or sets the batch flush interval.

EnableRedirect EnableRedirect

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

LeaseTimeout LeaseTimeout

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

Methods

Clone() Clone()

Makes a deep copy of this object.

Extension Methods

IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to