# EventHubPartitionGeneratorReceiver.ReceiveAsync(int, TimeSpan)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.testing.eventhubpartitiongeneratorreceiver/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/EventDataGeneratorStreamProvider/EventHubPartitionGeneratorReceiver.cs#L29-L37)

```csharp
public Task<IEnumerable<EventData>> ReceiveAsync(int maxCount, TimeSpan waitTime)
```

Send an async message to the partition asking for more messages

### Parameters

- `maxCount` (`int`): Max amount of message which should be delivered in this request
- `waitTime` (`TimeSpan`): Wait time of this request
