Class UriMask

Namespace: redb.Route.Core
Assembly: redb.Route.dll

Endpoint URI mask shared by AdviceWith (MockEndpoints, WeaveByToUri), endpoint
interception and the header / property masks. Three pattern forms, checked in order:
regex: prefix — a .NET regular expression (case-insensitive, culture-invariant,
one-second timeout, compiled once per pattern) matched against the URI as written, without its query
string, and with scheme:// collapsed to scheme:;trailing * — case-insensitive prefix match;otherwise — exact case-insensitive match.
A pattern without a query string ignores the candidate's query ("kafka://orders" matches
"kafka://orders?acks=all"); a pattern that carries one matches only that query
("kafka://orders?acks=all" does not match "?acks=none"). Both scheme://path
and scheme:path spellings are tried on either side, so a pattern written one way matches an
endpoint written the other.

public static class UriMask

Inheritance

Object→UriMask

Methods

IsMatch(string, string)

Returns true when uri matches pattern.

public static bool IsMatch(string pattern, string uri)

Validate(string?, string?)

Checks that pattern is a usable mask and throws an

public static void Validate(string? pattern, string? paramName = null)