# SiloBuilderExtensions Methods

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

## AddEventHubStreams(ISiloBuilder, string, Action&lt;EventHubOptions&gt;, Action&lt;AzureTableStreamCheckpointerOptions&gt;) {#addeventhubstreams-this-orleans-hosting-isilobuilder-string-system-action-orlean-64a74359}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.silobuilderextensions/methods/addeventhubstreams-this-orleans-hosting-isilobuilder-string-system-action-orlean-64a74359/)

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

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

Configure silo to use event hub persistent streams with default check pointer and other settings

### Parameters

- `builder` (`ISiloBuilder`)
- `name` (`string`)
- `configureEventHub` (`Action<EventHubOptions>`)
- `configureDefaultCheckpointer` (`Action<AzureTableStreamCheckpointerOptions>`)

## AddEventHubStreams(ISiloBuilder, string, Action&lt;ISiloEventHubStreamConfigurator&gt;) {#addeventhubstreams-this-orleans-hosting-isilobuilder-string-system-action-orlean-76ea1185}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.hosting.silobuilderextensions/methods/addeventhubstreams-this-orleans-hosting-isilobuilder-string-system-action-orlean-76ea1185/)

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

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

Configure silo to use event hub persistent streams.

### Parameters

- `builder` (`ISiloBuilder`)
- `name` (`string`)
- `configure` (`Action<ISiloEventHubStreamConfigurator>`)
