# EventHubOptions.ConfigureEventHubConnection(EventHubConnection, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.configuration.eventhuboptions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.configuration.eventhuboptions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/EventHubStreamOptions.cs#L134-L139)

```csharp
public void ConfigureEventHubConnection(EventHubConnection connection, string consumerGroup)
```

Configures the Azure Event Hub connection using the provided connection instance.

### Parameters

- `connection` (`EventHubConnection`)
- `consumerGroup` (`string`)
