mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-26 18:28:27 +02:00
Fix some SonarCloud issues (#1058)
* Fix some SonarCloud issues * added some xml comments
This commit is contained in:
@@ -23,17 +23,17 @@ public partial class Request
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public IRequestBuilder WithClientIP(params string[] paths)
|
||||
public IRequestBuilder WithClientIP(params string[] clientIPs)
|
||||
{
|
||||
return WithClientIP(MatchOperator.Or, paths);
|
||||
return WithClientIP(MatchOperator.Or, clientIPs);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public IRequestBuilder WithClientIP(MatchOperator matchOperator, params string[] paths)
|
||||
public IRequestBuilder WithClientIP(MatchOperator matchOperator, params string[] clientIPs)
|
||||
{
|
||||
Guard.NotNullOrEmpty(paths);
|
||||
Guard.NotNullOrEmpty(clientIPs);
|
||||
|
||||
_requestMatchers.Add(new RequestMessageClientIPMatcher(MatchBehaviour.AcceptOnMatch, matchOperator, paths));
|
||||
_requestMatchers.Add(new RequestMessageClientIPMatcher(MatchBehaviour.AcceptOnMatch, matchOperator, clientIPs));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user