Add HealthCheckCompletedWebhookEvent (#15337)
This commit is contained in:
committed by
GitHub
parent
c20d96c705
commit
80dcc04df0
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user