-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebHook : UseFireAndForget + Delay (#803)
* 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 <[email protected]> * small update * Tweak middleware and fix bug in example (#806) Co-authored-by: Matt Philmon <[email protected]> * .ConfigureAwait(false) Co-authored-by: mattisking <[email protected]> Co-authored-by: Matt Philmon <[email protected]>
- Loading branch information
1 parent
13a06b9
commit 98a0f2f
Showing
22 changed files
with
634 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
src/WireMock.Net.Abstractions/Admin/Mappings/WebhookModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
namespace WireMock.Admin.Mappings | ||
namespace WireMock.Admin.Mappings; | ||
|
||
/// <summary> | ||
/// The Webhook | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class WebhookModel | ||
{ | ||
/// <summary> | ||
/// The Webhook | ||
/// The Webhook Request. | ||
/// </summary> | ||
[FluentBuilder.AutoGenerateBuilder] | ||
public class WebhookModel | ||
{ | ||
/// <summary> | ||
/// The Webhook Request. | ||
/// </summary> | ||
public WebhookRequestModel Request { get; set; } | ||
} | ||
public WebhookRequestModel Request { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.