mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-23 17:41:01 +01:00
* Create new project for GraphQL * ... * . * ok? * Update src/WireMock.Net.Shared/Extensions/AnyOfExtensions.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * -- * ... --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
49 lines
1.9 KiB
C#
49 lines
1.9 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
using WireMock.Matchers;
|
|
|
|
namespace WireMock.RequestBuilders;
|
|
|
|
/// <summary>
|
|
/// The IClientIPRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IClientIPRequestBuilder : IUrlAndPathRequestBuilder
|
|
{
|
|
/// <summary>
|
|
/// WithClientIP: add clientIP matching based on IStringMatchers.
|
|
/// </summary>
|
|
/// <param name="matchers">The matchers.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithClientIP(params IStringMatcher[] matchers);
|
|
|
|
/// <summary>
|
|
/// WithClientIP: add clientIP matching based on MatchOperator and IStringMatchers.
|
|
/// </summary>
|
|
/// <param name="matchOperator">The <see cref="MatchOperator"/> to use.</param>
|
|
/// <param name="matchers">The matchers.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithClientIP(MatchOperator matchOperator, params IStringMatcher[] matchers);
|
|
|
|
/// <summary>
|
|
/// WithClientIP: add clientIP matching based on clientIPs.
|
|
/// </summary>
|
|
/// <param name="clientIPs">The clientIPs.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithClientIP(params string[] clientIPs);
|
|
|
|
/// <summary>
|
|
/// WithClientIP: add clientIP matching based on clientIPs , matchBehaviour and MatchOperator.
|
|
/// </summary>
|
|
/// <param name="matchOperator">The <see cref="MatchOperator"/> to use.</param>
|
|
/// <param name="clientIPs">The clientIPs.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithClientIP(MatchOperator matchOperator, params string[] clientIPs);
|
|
|
|
/// <summary>
|
|
/// WithClientIP: add clientIP matching based on functions.
|
|
/// </summary>
|
|
/// <param name="funcs">The clientIP funcs.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithClientIP(params Func<string, bool>[] funcs);
|
|
} |