Table of Contents

Class MessagingSection

Namespace
NuvTools.Notification.Messaging.Configuration
Assembly
NuvTools.Notification.Messaging.dll

Represents the configuration settings for a messaging queue, including its name, connection details, subscription name, and various operational parameters.

public class MessagingSection
Inheritance
MessagingSection
Inherited Members

Remarks

This class is typically used to bind configuration sections from appsettings or other configuration sources for messaging queue consumers or producers.

Connectivity is declared either with ConnectionString (shared access key) or with FullyQualifiedNamespace (Entra ID credential). When both are present the connection string wins.

Properties

AutoCompleteMessages

Gets or sets a value indicating whether messages should be automatically completed after processing. Default is false.

public bool AutoCompleteMessages { get; set; }

Property Value

bool

ConnectionString

Gets or sets the connection string used to connect to the messaging service. Leave empty to authenticate with an Entra ID credential against FullyQualifiedNamespace.

public string? ConnectionString { get; set; }

Property Value

string

FullyQualifiedNamespace

Gets or sets the fully qualified namespace of the messaging service (for example contoso.servicebus.windows.net), used when authenticating with an Entra ID credential instead of a connection string.

public string? FullyQualifiedNamespace { get; set; }

Property Value

string

ManagedIdentityClientId

Gets or sets the client ID of the user-assigned managed identity to authenticate with when FullyQualifiedNamespace is used and no explicit credential is supplied. Leave empty to use the identity named by the AZURE_CLIENT_ID environment variable, then the system-assigned identity or the ambient developer credential.

public string? ManagedIdentityClientId { get; set; }

Property Value

string

MaxAutoLockRenewalDuration

Gets or sets the maximum duration for which the message lock will be automatically renewed. Default is 30 minutes.

public TimeSpan MaxAutoLockRenewalDuration { get; set; }

Property Value

TimeSpan

MaxConcurrentCalls

Gets or sets the maximum number of concurrent calls to the message handler. Default is 10.

public int MaxConcurrentCalls { get; set; }

Property Value

int

Name

Gets or sets the name of the messaging queue or topic.

public required string Name { get; set; }

Property Value

string

RequiresSession

Gets or sets a value indicating whether the queue or subscription requires sessions. When enabled, the receiver must use a session-aware processor. Default is false.

public bool RequiresSession { get; set; }

Property Value

bool

SubscriptionName

Gets or sets the subscription name for the messaging queue, if applicable.

public string? SubscriptionName { get; set; }

Property Value

string