![]() | TestKitBaseTryReceiveOne Method |
Name | Description | |
---|---|---|
![]() | TryReceiveOne(MessageEnvelope, NullableTimeSpan) |
Receive one message from the internal queue of the TestActor within
the specified duration. The method blocks the specified duration.
![]() Note! that the returned envelope
is a MessageEnvelope containing the sender and the message. ![]() This method does NOT automatically scale its Duration parameter using Dilated(TimeSpan)! |
![]() | TryReceiveOne(MessageEnvelope, NullableTimeSpan, CancellationToken) |
Receive one message from the internal queue of the TestActor within
the specified duration.
True is returned if a message existed, and the message is returned in envelope. The method blocks the specified duration, and can be cancelled using the cancellationToken. ![]() This method does NOT automatically scale its duration parameter using Dilated(TimeSpan)! |