# ClientBuilderExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.clientbuilderextensions/)

## AddEventHubStreams(IClientBuilder, string, Action&lt;EventHubOptions&gt;) {#addeventhubstreams-this-orleans-hosting-iclientbuilder-string-system-action-orle-e66f0f95}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.clientbuilderextensions/methods/addeventhubstreams-this-orleans-hosting-iclientbuilder-string-system-action-orle-e66f0f95/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Hosting/ClientBuilderExtensions.cs#L28-L29)

```csharp
public static IClientBuilder AddEventHubStreams(this IClientBuilder builder, string name, Action<EventHubOptions> configureEventHub)
```

Configure cluster client to use event hub persistent streams with default settings.

### Parameters

- `builder` (`IClientBuilder`)
- `name` (`string`)
- `configureEventHub` (`Action<EventHubOptions>`)

## AddEventHubStreams(IClientBuilder, string, Action&lt;IClusterClientEventHubStreamConfigurator&gt;) {#addeventhubstreams-this-orleans-hosting-iclientbuilder-string-system-action-orle-6e6cbb1d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.clientbuilderextensions/methods/addeventhubstreams-this-orleans-hosting-iclientbuilder-string-system-action-orle-6e6cbb1d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Hosting/ClientBuilderExtensions.cs#L16-L18)

```csharp
public static IClientBuilder AddEventHubStreams(this IClientBuilder builder, string name, Action<IClusterClientEventHubStreamConfigurator> configure)
```

Configure cluster client to use event hub persistent streams.

### Parameters

- `builder` (`IClientBuilder`)
- `name` (`string`)
- `configure` (`Action<IClusterClientEventHubStreamConfigurator>`)
