From 108e928335b0c9ddcf567bf37f9bf63719fc7e0f Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 2 Oct 2024 20:53:21 +0200 Subject: [PATCH] Update WebhooksCore to preview.17 and add HTTP client config Upgraded WebhooksCore package version from 0.0.1-preview.16 to 0.0.1-preview.17. Introduced a new configurable HTTP client action in the WebhooksFeature class to support extended configurations. --- Directory.Packages.props | 2 +- src/modules/Elsa.Webhooks/Features/WebhooksFeature.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 3cbfdec57..7b42434d9 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -100,7 +100,7 @@ - + diff --git a/src/modules/Elsa.Webhooks/Features/WebhooksFeature.cs b/src/modules/Elsa.Webhooks/Features/WebhooksFeature.cs index 4b4b7100d..43f43154c 100644 --- a/src/modules/Elsa.Webhooks/Features/WebhooksFeature.cs +++ b/src/modules/Elsa.Webhooks/Features/WebhooksFeature.cs @@ -18,6 +18,7 @@ public class WebhooksFeature : FeatureBase } public Action> ConfigureSinks { get; set; } = options => { }; + public Action ConfigureHttpClient { get; set; } = builder => { }; /// Registers the specified webhook with public WebhooksFeature RegisterWebhookSink(Uri endpoint) @@ -62,7 +63,7 @@ public class WebhooksFeature : FeatureBase public override void Apply() { Services - .AddWebhooksCore() + .AddWebhooksCore(ConfigureHttpClient) .AddActivityProvider(); } } \ No newline at end of file