Table of Contents

Class WebhookDefinition

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

Represents the registration of a single client webhook observer.

public record WebhookDefinition : IEquatable<WebhookDefinition>
Inheritance
WebhookDefinition
Implements
Inherited Members

Constructors

WebhookDefinition(WebhookId, IEnumerable<EventType>, WebhookTarget, EventSequenceId, bool, bool)

Represents the registration of a single client webhook observer.

public WebhookDefinition(WebhookId Identifier, IEnumerable<EventType> EventTypes, WebhookTarget Target, EventSequenceId EventSequenceId, bool IsReplayable, bool IsActive)

Parameters

Identifier WebhookId

WebhookId of the webhook.

EventTypes IEnumerable<EventType>

The type of events the observer is interested in.

Target WebhookTarget

The WebhookTarget target to send the events to.

EventSequenceId EventSequenceId

The EventSequenceId the webhook is for.

IsReplayable bool

Whether the webhook supports replay scenarios.

IsActive bool

Whether the wehbook is active.

Properties

EventSequenceId

The EventSequenceId the webhook is for.

public EventSequenceId EventSequenceId { get; init; }

Property Value

EventSequenceId

EventTypes

The type of events the observer is interested in.

public IEnumerable<EventType> EventTypes { get; init; }

Property Value

IEnumerable<EventType>

Identifier

WebhookId of the webhook.

public WebhookId Identifier { get; init; }

Property Value

WebhookId

IsActive

Whether the wehbook is active.

public bool IsActive { get; init; }

Property Value

bool

IsReplayable

Whether the webhook supports replay scenarios.

public bool IsReplayable { get; init; }

Property Value

bool

Target

The WebhookTarget target to send the events to.

public WebhookTarget Target { get; init; }

Property Value

WebhookTarget