Skip to content
DocsTry Aspire
DocsTry

AzureMessagingEventHubsSettings Properties

ClassProperties6 members
Represents additional shared settings for configuring an Event Hubs client.
ConnectionStringSection titled ConnectionStringnullablestring?
Gets or sets the connection string used to connect to the Event Hubs namespace.
public string? ConnectionString { get; set; }
CredentialSection titled CredentialnullableTokenCredential?
Gets or sets the credential used to authenticate to the Event Hubs namespace.
public TokenCredential? Credential { get; set; }
DisableHealthChecksSection titled DisableHealthChecksbool
Gets or sets a boolean value that indicates whether the Azure Event Hubs health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }
Event Hubs 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".
EventHubNameSection titled EventHubNamenullablestring?
Gets or sets the name of the Event Hub.
public string? EventHubName { get; set; }
FullyQualifiedNamespaceSection titled FullyQualifiedNamespacenullablestring?
Gets or sets the fully qualified Event Hubs namespace.
public string? FullyQualifiedNamespace { get; set; }
Used along with AzureMessagingEventHubsSettings.Credential to establish the connection.