mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-20 17:27:42 +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>
41 lines
1007 B
C#
41 lines
1007 B
C#
using System.Collections.Generic;
|
|
using WireMock.Types;
|
|
using WireMock.Util;
|
|
|
|
namespace WireMock.Models;
|
|
|
|
/// <summary>
|
|
/// WebhookRequest
|
|
/// </summary>
|
|
public class WebhookRequest : IWebhookRequest
|
|
{
|
|
/// <inheritdoc />
|
|
public string Url { get; set; } = null!;
|
|
|
|
/// <inheritdoc />
|
|
public string Method { get; set; } = null!;
|
|
|
|
/// <inheritdoc />
|
|
public IDictionary<string, WireMockList<string>>? Headers { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public IBodyData? BodyData { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public bool? UseTransformer { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public TransformerType TransformerType { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public ReplaceNodeOptions TransformerReplaceNodeOptions { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public int? Delay { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public int? MinimumRandomDelay { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public int? MaximumRandomDelay { get; set; }
|
|
} |