Skip to content
Docs Try Aspire

AzureMessagingEventHubsSettings Properties

Class Properties 6 members
Represents additional shared settings for configuring an Event Hubs client.
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the connection string used to connect to the Event Hubs namespace.
public string? ConnectionString { get; set; }
Credential Section titled Credential nullable TokenCredential?
Gets or sets the credential used to authenticate to the Event Hubs namespace.
public TokenCredential? Credential { get; set; }
DisableHealthChecks Section titled DisableHealthChecks bool
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".
EventHubName Section titled EventHubName nullable string?
Gets or sets the name of the Event Hub.
public string? EventHubName { get; set; }
FullyQualifiedNamespace Section titled FullyQualifiedNamespace nullable string?
Gets or sets the fully qualified Event Hubs namespace.
public string? FullyQualifiedNamespace { get; set; }
Used along with AzureMessagingEventHubsSettings.Credential to establish the connection.