# EventHubDataAdapter Constructors

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

## EventHubDataAdapter(Serializer) {#constructor-orleans-serialization-serializer-17e3401d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.eventhubdataadapter/constructors/constructor-orleans-serialization-serializer-17e3401d/)

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

```csharp
public EventHubDataAdapter(Serializer serializer)
```

Cache data adapter that adapts EventHub's EventData to CachedEventHubMessage used in cache

### Parameters

- `serializer` (`Serializer`)
