Skip to content

Use IHttpClientFactory when executing webhooks and add a little more context in headers#15378

Closed
kjac wants to merge 1 commit intorelease/13.0from
v13/fix/webhook-firing-httpclientfactory-headers
Closed

Use IHttpClientFactory when executing webhooks and add a little more context in headers#15378
kjac wants to merge 1 commit intorelease/13.0from
v13/fix/webhook-firing-httpclientfactory-headers

Conversation

@kjac
Copy link
Contributor

@kjac kjac commented Dec 6, 2023

Prerequisites

If there's an existing issue for this PR then this fixes #15238 (partial fix)

Description

The linked discussion revolves around supplying additional context when executing a webhook. As it happens, webhooks already append the triggering event name as an Umb-Webhook-Event request header when executing.

This PR ensures that:

  1. We use the IHttpClientFactory to create HTTP clients instead of new'ing them up when executing a webhook.
  2. We also add the current retry count as a request header (Umb-Webhook-RetryCount).

@kjac
Copy link
Contributor Author

kjac commented Dec 6, 2023

Well that's silly... this is somewhat a duplicate of #15375 🤦

@kjac kjac closed this Dec 6, 2023
@ronaldbarendse ronaldbarendse deleted the v13/fix/webhook-firing-httpclientfactory-headers branch December 6, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant