This commit is contained in:
Stef Heyenrath
2026-01-11 18:05:35 +01:00
parent 041d16e658
commit 83922fd543
11 changed files with 63 additions and 18 deletions

View File

@@ -31,6 +31,7 @@ public class RequestMatchResult : IRequestMatchResult
{
MatchDetails.Add(new MatchDetail
{
Name = matcherType.Name.Replace("RequestMessage", string.Empty),
MatcherType = matcherType,
Score = score,
Exception = exception
@@ -39,6 +40,14 @@ public class RequestMatchResult : IRequestMatchResult
return score;
}
/// <inheritdoc />
public double AddMatchDetail(MatchDetail matchDetail)
{
MatchDetails.Add(matchDetail);
return matchDetail.Score;
}
/// <summary>
/// Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
/// </summary>