WithParams doesn't support dup query params. I couldn't find a workaround.
In QueryParamMatch, there is...
if (!String.Equals(requestQueryParams[queryParam.Key], queryParam.Value, StringComparison.OrdinalIgnoreCase)) {
return false;
}
Could you please change it such that it uses requestQueryParams.Values given a key? That way, it can support dup query params polymorphically.
In EndpointMatchingRule,
var requestQueryParams = valueCollection.AllKeys
.Where(k => !string.IsNullOrEmpty(k))
.ToDictionary(k => k, k => valueCollection[k]);
This seems to ignore dup query params when it does ToDictionary.
WithParams doesn't support dup query params. I couldn't find a workaround.
In QueryParamMatch, there is... if (!String.Equals(requestQueryParams[queryParam.Key], queryParam.Value, StringComparison.OrdinalIgnoreCase)) { return false; }
Could you please change it such that it uses requestQueryParams.Values given a key? That way, it can support dup query params polymorphically.
In EndpointMatchingRule, var requestQueryParams = valueCollection.AllKeys .Where(k => !string.IsNullOrEmpty(k)) .ToDictionary(k => k, k => valueCollection[k]);
This seems to ignore dup query params when it does ToDictionary.