mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:14:23 +01:00
* Create WireMock.Net.ProtoBuf project * ok * Update Directory.Build.props Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
|
|
namespace WireMock.ResponseBuilders;
|
|
|
|
/// <summary>
|
|
/// The DelayResponseBuilder interface.
|
|
/// </summary>
|
|
public interface IDelayResponseBuilder : ICallbackResponseBuilder
|
|
{
|
|
/// <summary>
|
|
/// The delay defined as a <see cref="TimeSpan"/>.
|
|
/// </summary>
|
|
/// <param name="delay">The TimeSpan to delay.</param>
|
|
/// <returns>The <see cref="IResponseBuilder"/>.</returns>
|
|
IResponseBuilder WithDelay(TimeSpan delay);
|
|
|
|
/// <summary>
|
|
/// The delay defined as milliseconds.
|
|
/// </summary>
|
|
/// <param name="milliseconds">The milliseconds to delay.</param>
|
|
/// <returns>The <see cref="IResponseBuilder"/>.</returns>
|
|
IResponseBuilder WithDelay(int milliseconds);
|
|
|
|
/// <summary>
|
|
/// Introduce random delay
|
|
/// </summary>
|
|
/// <param name="minimumMilliseconds">Minimum milliseconds to delay</param>
|
|
/// <param name="maximumMilliseconds">Maximum milliseconds to delay</param>
|
|
/// <returns>The <see cref="IResponseBuilder"/>.</returns>
|
|
IResponseBuilder WithRandomDelay(int minimumMilliseconds = 0, int maximumMilliseconds = 60_000);
|
|
} |