mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Is it possible to some how send multiple webhooks? #346
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ShaunJahn on GitHub (May 18, 2021).
Originally assigned to: @StefH on GitHub.
When setting up a mock endpoint and using:
WithWebhookfor single works perfectly.Would be possible to use the same logic but provide a list of
Webhookand send multiple webhooks at a time?@StefH commented on GitHub (May 18, 2021):
@ShaunJahn Do you mean multiple webhooks? Or sending the same webhook to multiple urls?
@ShaunJahn commented on GitHub (May 18, 2021):
Trigger multiple webhooks on the same request.
@StefH commented on GitHub (May 18, 2021):
Can you try MyGet preview version:
1.4.14-ci-15092
@ShaunJahn commented on GitHub (May 19, 2021):
Do you mean update
WireMock.Netto that version? I tried but can't be found.@StefH commented on GitHub (May 19, 2021):
@ShaunJahn
Correct, I mean updating the NuGet to that version. But this version is not defined on nuget.org, but on myget.
See this wiki link for details:
https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
@ShaunJahn commented on GitHub (May 19, 2021):
Thank you for this,

I changed the code and both webhooks went through,
but the body seems to come back as null

@StefH commented on GitHub (May 19, 2021):
I think in your case you need
DetectedBodyType = BodyType.StringSee also:
https://github.com/WireMock-Net/WireMock.Net/wiki/Webhook#c
@ShaunJahn commented on GitHub (May 19, 2021):
Can confirm that it's working perfectly after that change.
Thank you @StefH
@StefH commented on GitHub (May 19, 2021):
OK. Thank you for verifying.
I'll merge this PR and release a official new NuGet shorty.
@ShaunJahn commented on GitHub (May 19, 2021):
Awesome, thank you so much for this and the great work.