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
- Extension Methods
Constructors
WebhookState(ObserverRunningState, bool, EventSequenceNumber, EventSequenceNumber)
Represents the state of a webhook.
public WebhookState(ObserverRunningState RunningState, bool IsSubscribed, EventSequenceNumber NextEventSequenceNumber, EventSequenceNumber LastHandledEventSequenceNumber)
Parameters
RunningStateObserverRunningStateThe current running state of the webhook.
IsSubscribedboolIndicates whether the webhook is subscribed.
NextEventSequenceNumberEventSequenceNumberThe next event sequence number.
LastHandledEventSequenceNumberEventSequenceNumberThe last handled event sequence number.
WebhookState(WebhookState)
protected WebhookState(WebhookState original)
Parameters
originalWebhookState
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
IsSubscribed
Indicates whether the webhook is subscribed.
public bool IsSubscribed { get; init; }
Property Value
LastHandledEventSequenceNumber
The last handled event sequence number.
public EventSequenceNumber LastHandledEventSequenceNumber { get; init; }
Property Value
NextEventSequenceNumber
The next event sequence number.
public EventSequenceNumber NextEventSequenceNumber { get; init; }
Property Value
RunningState
The current running state of the webhook.
public ObserverRunningState RunningState { get; init; }
Property Value
Methods
Deconstruct(out ObserverRunningState, out bool, out EventSequenceNumber, out EventSequenceNumber)
public void Deconstruct(out ObserverRunningState RunningState, out bool IsSubscribed, out EventSequenceNumber NextEventSequenceNumber, out EventSequenceNumber LastHandledEventSequenceNumber)
Parameters
RunningStateObserverRunningStateIsSubscribedboolNextEventSequenceNumberEventSequenceNumberLastHandledEventSequenceNumberEventSequenceNumber
Equals(WebhookState?)
public virtual bool Equals(WebhookState? other)
Parameters
otherWebhookState
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(WebhookState?, WebhookState?)
public static bool operator ==(WebhookState? left, WebhookState? right)
Parameters
leftWebhookStaterightWebhookState
Returns
operator !=(WebhookState?, WebhookState?)
public static bool operator !=(WebhookState? left, WebhookState? right)
Parameters
leftWebhookStaterightWebhookState