Class NotifyMatcher

Assembly: redb.Route.TestKit.dll

Counts exchange events (received / completed / failed) for the scope chosen in
and reports when the configured conditions hold.
Registered as an ; events arrive from the route's outermost
wrapper, so "completed" and "failed" reflect the final outcome after error handling.

public sealed class NotifyMatcher : IRouteLifecycleListener, IDisposable

Inheritance

Object→NotifyMatcher

Implements

Properties

CompletedCount

Exchanges that completed without a propagated exception.

public int CompletedCount { get; }

DoneCount

Completed plus failed.

public int DoneCount { get; }

FailedCount

Exchanges that escaped their route with an exception.

public int FailedCount { get; }

ReceivedCount

Exchanges that entered the scoped routes.

public int ReceivedCount { get; }

Methods

Dispose()

Stops counting. The listener registration stays with the context but ignores further events.

public void Dispose()

Matches()

true when every configured condition currently holds.

public bool Matches()

MatchesAsync(TimeSpan, CancellationToken)

Waits up to timeout for the conditions to hold; false on timeout.

public Task<bool> MatchesAsync(TimeSpan timeout, CancellationToken ct = default)

Reset()

Zeroes the counters so the same matcher can be reused for the next batch.

public void Reset()