# EventHubPartitionGeneratorReceiver

Package: [Microsoft.Orleans.Streaming.EventHubs](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/) 10.0.0

[NuGet package](https://www.nuget.org/packages/Microsoft.Orleans.Streaming.EventHubs) | [Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/EventDataGeneratorStreamProvider/EventHubPartitionGeneratorReceiver.cs#L13)

```csharp
public class EventHubPartitionGeneratorReceiver : IEventHubReceiver
```

Eventhub receiver which configured with data generator

## Constructors

- [EventHubPartitionGeneratorReceiver(IDataGenerator&lt;EventData&gt;)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/constructors/constructor-orleans-streaming-eventhubs-testing-idatagenerator-azure-messaging-e-d1975702/)

## Methods

- [CloseAsync](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/methods/closeasync-ff64574f/)
- [ConfigureDataGeneratorForStream(StreamId)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/methods/configuredatageneratorforstream-orleans-runtime-streamid-5146184a/)
- [ReceiveAsync(int, TimeSpan)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/methods/receiveasync-int-system-timespan-49530062/)
- [StopProducingOnStream(StreamId)](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/methods/stopproducingonstream-orleans-runtime-streamid-7c615b0c/)
