Skip to content
Docs Try Aspire

AzureMessagingServiceBusSettings Properties

Class Properties 8 members
Provides the client configuration settings for connecting to Azure Service Bus.
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the connection string used to connect to the Service Bus namespace.
public string? ConnectionString { get; set; }
Credential Section titled Credential nullable TokenCredential?
Gets or sets the credential used to authenticate to the Service Bus namespace.
public TokenCredential? Credential { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }
ServiceBus ActivitySource support in Azure SDK is experimental, the shape of Activities may change in the future without notice. It can be enabled by setting "Azure.Experimental.EnableActivitySource" AppContext switch to true. Or by setting "AZURE_EXPERIMENTAL_ENABLE_ACTIVITY_SOURCE" environment variable to "true".
FullyQualifiedNamespace Section titled FullyQualifiedNamespace nullable string?
Gets or sets the fully qualified Service Bus namespace.
public string? FullyQualifiedNamespace { get; set; }
Used along with AzureMessagingServiceBusSettings.Credential to establish the connection.
HealthCheckQueueName Section titled HealthCheckQueueName nullable string?
Name of the queue used by the health check. Mandatory to get health checks enabled.
public string? HealthCheckQueueName { get; set; }
HealthCheckTopicName Section titled HealthCheckTopicName nullable string?
Name of the topic used by the health check. Mandatory to get health checks enabled.
public string? HealthCheckTopicName { get; set; }
QueueOrTopicName Section titled QueueOrTopicName nullable string?
Name of the queue or topic associated with the connection string.
public string? QueueOrTopicName { get; set; }
SubscriptionName Section titled SubscriptionName nullable string?
Name of the subscription associated with the connection string.
public string? SubscriptionName { get; set; }