# EventHubOptions.ConfigureEventHubConnection(string, string, string, AzureNamedKeyCredential)

[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)

```csharp
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

- `fullyQualifiedNamespace` (`string`)
- `eventHubName` (`string`)
- `consumerGroup` (`string`)
- `credential` (`AzureNamedKeyCredential`)
