Click or drag to resize
Akka.NETTestKitBaseFishForMessageT Method (PredicateT, NullableTimeSpan, String)
Receives messages until isMessage returns true. Use it to ignore certain messages while waiting for a specific message.

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public T FishForMessage<T>(
	Predicate<T> isMessage,
	Nullable<TimeSpan> max = null,
	string hint = ""
)

Parameters

isMessage
Type: SystemPredicateT
The is message.
max (Optional)
Type: SystemNullableTimeSpan
The maximum.
hint (Optional)
Type: SystemString
The hint.

Type Parameters

T
The type of the expected message. Messages of other types are ignored.

Return Value

Type: T
Returns the message that isMessage matched
See Also