Skip to content

EventHubOptions Methods

EventHub settings for a specific hub

ConfigureEventHubConnection(string, string, string)

View source
public void ConfigureEventHubConnection(string connectionString, string eventHubName, string consumerGroup)
Configures the Azure Event Hub connection using the provided connection string.

Parameters

connectionStringstring
eventHubNamestring
consumerGroupstring

ConfigureEventHubConnection(string, string, string, AzureNamedKeyCredential)

View source
public void ConfigureEventHubConnection(string fullyQualifiedNamespace, string eventHubName, string consumerGroup, AzureNamedKeyCredential credential)
Configures the Azure Event Hub connection using the provided fully-qualified namespace string and credential.

Parameters

fullyQualifiedNamespacestring
eventHubNamestring
consumerGroupstring
credentialAzureNamedKeyCredential

ConfigureEventHubConnection(string, string, string, AzureSasCredential)

View source
public void ConfigureEventHubConnection(string fullyQualifiedNamespace, string eventHubName, string consumerGroup, AzureSasCredential credential)
Configures the Azure Event Hub connection using the provided fully-qualified namespace string and credential.

Parameters

fullyQualifiedNamespacestring
eventHubNamestring
consumerGroupstring
credentialAzureSasCredential

ConfigureEventHubConnection(string, string, string, TokenCredential)

View source
public void ConfigureEventHubConnection(string fullyQualifiedNamespace, string eventHubName, string consumerGroup, TokenCredential credential)
Configures the Azure Event Hub connection using the provided fully-qualified namespace string and credential.

Parameters

fullyQualifiedNamespacestring
eventHubNamestring
consumerGroupstring
credentialTokenCredential