Interface IWebhooks

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

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

public interface IWebhooks
Extension Methods

Methods

GetAll()

Get all registered webhook definitions for this event store.

Task<IEnumerable<WebhookDefinition>> GetAll()

Returns

Task<IEnumerable<WebhookDefinition>>

A collection of WebhookDefinition.

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.