Click or drag to resize
Akka.NETTestKitBaseExpectMsgFromT Method (PredicateIActorRef, PredicateT, NullableTimeSpan, String)
Receive one message of the specified type from the test actor and assert that the given predicate accepts it and was sent by a sender that matches the isSender predicate. Wait time is bounded by the given duration if specified. If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within' block, if inside a 'within' block; otherwise by the config value "akka.test.single-expect-default". Use this variant to implement more complicated or conditional processing.

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public T ExpectMsgFrom<T>(
	Predicate<IActorRef> isSender,
	Predicate<T> isMessage,
	Nullable<TimeSpan> timeout = null,
	string hint = null
)

Parameters

isSender
Type: SystemPredicateIActorRef
TBD
isMessage
Type: SystemPredicateT
TBD
timeout (Optional)
Type: SystemNullableTimeSpan
TBD
hint (Optional)
Type: SystemString
TBD

Type Parameters

T
TBD

Return Value

Type: T
TBD
See Also