Skip to content

EventHubOptions Methods

EventHub settings for a specific hub

ConfigureEventHubConnection(CreateConnectionDelegate, string, string)

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

Parameters

createConnectionCreateConnectionDelegate
The delegate used to create Event Hub connections.
eventHubNamestring
The Event Hub name.
consumerGroupstring
The consumer group name.

ConfigureEventHubConnection(EventHubConnection, string)

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

Parameters

connectionEventHubConnection
The Event Hub connection.
consumerGroupstring
The consumer group name.

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
The Event Hub connection string.
eventHubNamestring
The Event Hub name.
consumerGroupstring
The consumer group name.

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
The fully qualified Event Hubs namespace.
eventHubNamestring
The Event Hub name.
consumerGroupstring
The consumer group name.
credentialAzureNamedKeyCredential
The named key credential.

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
The fully qualified Event Hubs namespace.
eventHubNamestring
The Event Hub name.
consumerGroupstring
The consumer group name.
credentialAzureSasCredential
The shared access signature credential.

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
The fully qualified Event Hubs namespace.
eventHubNamestring
The Event Hub name.
consumerGroupstring
The consumer group name.
credentialTokenCredential
The token credential.