Click or drag to resize
Akka.NETTestKitBaseTryReceiveOne Method
Overload List
  NameDescription
Public methodTryReceiveOne(MessageEnvelope, NullableTimeSpan)
Receive one message from the internal queue of the TestActor within the specified duration. The method blocks the specified duration.
Remarks
Note! that the returned envelope is a MessageEnvelope containing the sender and the message.
Remarks
This method does NOT automatically scale its Duration parameter using Dilated(TimeSpan)!
Public methodTryReceiveOne(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.

Remarks
This method does NOT automatically scale its duration parameter using Dilated(TimeSpan)!
Top
See Also