| TestKitBaseReceiveN Method (Int32, TimeSpan) |
Receive the specified number of messages in a row before the given deadline.
The deadline is scaled by "akka.test.timefactor" using
Dilated(TimeSpan).
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public IReadOnlyCollection<Object> ReceiveN(
int numberOfMessages,
TimeSpan max
)
member ReceiveN :
numberOfMessages : int *
max : TimeSpan -> IReadOnlyCollection<Object>
Parameters
- numberOfMessages
- Type: SystemInt32
The number of messages. - max
- Type: SystemTimeSpan
The timeout scaled by "akka.test.timefactor" using Dilated(TimeSpan).
Return Value
Type:
IReadOnlyCollectionObjectThe received messages
See Also