mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 22:33:35 +01:00
* UseFireAndForget * ... * delay * async * updated code accorsing to proposal * Change nuget to package reference for WireMock.Net.Console.Net472.Classic, move the new FireAndForget into the main mapping, out of individual webhook mappings making it all or nothing, update tests, change Middleware to await or not the firing of all webhooks. Update models as needed. (#804) Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com> * small update * Tweak middleware and fix bug in example (#806) Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com> * .ConfigureAwait(false) Co-authored-by: mattisking <mattisking@gmail.com> Co-authored-by: Matt Philmon <Matt_Philmon@carmax.com>
61 lines
1.4 KiB
C#
61 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using WireMock.Types;
|
|
using WireMock.Util;
|
|
|
|
namespace WireMock.Models;
|
|
|
|
/// <summary>
|
|
/// IWebhookRequest
|
|
/// </summary>
|
|
public interface IWebhookRequest
|
|
{
|
|
/// <summary>
|
|
/// The Webhook Url.
|
|
/// </summary>
|
|
string Url { get; set; }
|
|
|
|
/// <summary>
|
|
/// The method to use.
|
|
/// </summary>
|
|
string Method { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Headers to send.
|
|
/// </summary>
|
|
IDictionary<string, WireMockList<string>>? Headers { get; }
|
|
|
|
/// <summary>
|
|
/// The body to send.
|
|
/// </summary>
|
|
IBodyData? BodyData { get; set; }
|
|
|
|
/// <summary>
|
|
/// Use Transformer.
|
|
/// </summary>
|
|
bool? UseTransformer { get; set; }
|
|
|
|
/// <summary>
|
|
/// The transformer type.
|
|
/// </summary>
|
|
TransformerType TransformerType { get; set; }
|
|
|
|
/// <summary>
|
|
/// The ReplaceNodeOptions to use when transforming a JSON node.
|
|
/// </summary>
|
|
ReplaceNodeOptions TransformerReplaceNodeOptions { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the delay in milliseconds.
|
|
/// </summary>
|
|
int? Delay { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the minimum random delay in milliseconds.
|
|
/// </summary>
|
|
int? MinimumRandomDelay { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the maximum random delay in milliseconds.
|
|
/// </summary>
|
|
int? MaximumRandomDelay { get; set; }
|
|
} |