Add HealthCheckCompletedWebhookEvent (#15337)

This commit is contained in:
Erik-Jan Westendorp
2023-12-04 14:04:57 +01:00
committed by GitHub
parent c20d96c705
commit 80dcc04df0
3 changed files with 33 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
using Umbraco.Cms.Core.Webhooks;
using Umbraco.Cms.Core.Webhooks.Events;
using Umbraco.Cms.Core.Webhooks.Events.HealthCheck;
using static Umbraco.Cms.Core.DependencyInjection.WebhookEventCollectionBuilderExtensions;
namespace Umbraco.Cms.Core.DependencyInjection;
@@ -313,6 +314,17 @@ public static class WebhookEventCollectionBuilderCmsExtensions
return builder;
}
/// <summary>
/// Adds the healthcheck webhook events.
/// </summary>
/// <param name="builder">The builder.</param>
/// <returns>
/// The builder.
/// </returns>
public static WebhookEventCollectionBuilder AddHealthCheck(this WebhookEventCollectionBuilder builder)
=> builder
.Append<HealthCheckCompletedWebhookEvent>();
/// <summary>
/// Adds all available user (including password, login and user group) webhook events.
/// </summary>