Table of Contents

Interface IWebhooks

Namespace
Cratis.Chronicle.Webhooks
Assembly
Cratis.Chronicle.dll

Defines a system for working with webhook registrations for the Kernel.

public interface IWebhooks

Methods

Register(WebhookId, WebhookTargetUrl, Action<IWebhookDefinitionBuilder>)

Registers a webhook.

Task Register(WebhookId webhookId, WebhookTargetUrl targetUrl, Action<IWebhookDefinitionBuilder> configure)

Parameters

webhookId WebhookId

The WebhookId of the webhook to register.

targetUrl WebhookTargetUrl

The WebhookTargetUrl.

configure Action<IWebhookDefinitionBuilder>

The Action<T> for configuring the WebhookDefinition.

Returns

Task

Awaitable task.