# EventHubAdapterFactory Constructors

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

## EventHubAdapterFactory(string, EventHubOptions, EventHubReceiverOptions, EventHubStreamCachePressureOptions, StreamCacheEvictionOptions, StreamStatisticOptions, IEventHubDataAdapter, IServiceProvider, ILoggerFactory, IEnvironmentStatisticsProvider) {#constructor-string-orleans-configuration-eventhuboptions-orleans-configuration-e-ba064de5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubadapterfactory/constructors/constructor-string-orleans-configuration-eventhuboptions-orleans-configuration-e-ba064de5/)

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

```csharp
public EventHubAdapterFactory(string name, EventHubOptions ehOptions, EventHubReceiverOptions receiverOptions, EventHubStreamCachePressureOptions cacheOptions, StreamCacheEvictionOptions cacheEvictionOptions, StreamStatisticOptions statisticOptions, IEventHubDataAdapter dataAdapter, IServiceProvider serviceProvider, ILoggerFactory loggerFactory, IEnvironmentStatisticsProvider environmentStatisticsProvider)
```

### Parameters

- `name` (`string`)
- `ehOptions` (`EventHubOptions`)
- `receiverOptions` (`EventHubReceiverOptions`)
- `cacheOptions` (`EventHubStreamCachePressureOptions`)
- `cacheEvictionOptions` (`StreamCacheEvictionOptions`)
- `statisticOptions` (`StreamStatisticOptions`)
- `dataAdapter` (`IEventHubDataAdapter`)
- `serviceProvider` (`IServiceProvider`)
- `loggerFactory` (`ILoggerFactory`)
- `environmentStatisticsProvider` (`IEnvironmentStatisticsProvider`)
