Table of Contents

Class WebhookState

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

Represents the state of a webhook.

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

Constructors

WebhookState(ObserverRunningState, bool, EventSequenceNumber, EventSequenceNumber)

Represents the state of a webhook.

public WebhookState(ObserverRunningState RunningState, bool IsSubscribed, EventSequenceNumber NextEventSequenceNumber, EventSequenceNumber LastHandledEventSequenceNumber)

Parameters

RunningState ObserverRunningState

The current running state of the webhook.

IsSubscribed bool

Indicates whether the webhook is subscribed.

NextEventSequenceNumber EventSequenceNumber

The next event sequence number.

LastHandledEventSequenceNumber EventSequenceNumber

The last handled event sequence number.

Properties

IsSubscribed

Indicates whether the webhook is subscribed.

public bool IsSubscribed { get; init; }

Property Value

bool

LastHandledEventSequenceNumber

The last handled event sequence number.

public EventSequenceNumber LastHandledEventSequenceNumber { get; init; }

Property Value

EventSequenceNumber

NextEventSequenceNumber

The next event sequence number.

public EventSequenceNumber NextEventSequenceNumber { get; init; }

Property Value

EventSequenceNumber

RunningState

The current running state of the webhook.

public ObserverRunningState RunningState { get; init; }

Property Value

ObserverRunningState