Method WaitForReceived
WaitForReceived<T>(TimeSpan?, Func<TrackedMessage, bool>?)
Waits for a message of the specified type to reach the Received stage.
public Task<TrackedMessage> WaitForReceived<T>(TimeSpan? timeout = null, Func<TrackedMessage, bool>? predicate = null) where T : notnull
Parameters
timeoutTimeSpan?predicateFunc<TrackedMessage, bool>
Returns
Type Parameters
T