# IEventHubReceiver.ReceiveAsync(int, TimeSpan)

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

```csharp
public abstract 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
