# EventHubStreamConfiguratorExtensions Methods

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

## ConfigureEventHub(IEventHubStreamConfigurator, Action&lt;OptionsBuilder&lt;EventHubOptions&gt;&gt;) {#configureeventhub-this-orleans-hosting-ieventhubstreamconfigurator-system-action-02adbab8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.eventhubstreamconfiguratorextensions/methods/configureeventhub-this-orleans-hosting-ieventhubstreamconfigurator-system-action-02adbab8/)

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

```csharp
public static void ConfigureEventHub(this IEventHubStreamConfigurator configurator, Action<OptionsBuilder<EventHubOptions>> configureOptions)
```

### Parameters

- `configurator` (`IEventHubStreamConfigurator`)
- `configureOptions` (`Action<OptionsBuilder<EventHubOptions>>`)

## UseDataAdapter(IEventHubStreamConfigurator, Func&lt;IServiceProvider, string, IEventHubDataAdapter&gt;) {#usedataadapter-this-orleans-hosting-ieventhubstreamconfigurator-system-func-syst-85a3dd8e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.eventhubstreamconfiguratorextensions/methods/usedataadapter-this-orleans-hosting-ieventhubstreamconfigurator-system-func-syst-85a3dd8e/)

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

```csharp
public static void UseDataAdapter(this IEventHubStreamConfigurator configurator, Func<IServiceProvider, string, IEventHubDataAdapter> factory)
```

### Parameters

- `configurator` (`IEventHubStreamConfigurator`)
- `factory` (`Func<IServiceProvider, string, IEventHubDataAdapter>`)
