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
- Extension Methods
Constructors
WebhookDefinition(WebhookDefinition)
protected WebhookDefinition(WebhookDefinition original)
Parameters
originalWebhookDefinition
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
IdentifierWebhookIdWebhookId of the webhook.
EventTypesIEnumerable<EventType>The type of events the observer is interested in.
TargetWebhookTargetThe WebhookTarget target to send the events to.
EventSequenceIdEventSequenceIdThe EventSequenceId the webhook is for.
IsReplayableboolWhether the webhook supports replay scenarios.
IsActiveboolWhether the wehbook is active.
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventSequenceId
The EventSequenceId the webhook is for.
public EventSequenceId EventSequenceId { get; init; }
Property Value
EventTypes
The type of events the observer is interested in.
public IEnumerable<EventType> EventTypes { get; init; }
Property Value
GenerationDelivery
Gets the policy for delivering event generations.
public EventGenerationDelivery GenerationDelivery { get; init; }
Property Value
Identifier
WebhookId of the webhook.
public WebhookId Identifier { get; init; }
Property Value
IsActive
Whether the wehbook is active.
public bool IsActive { get; init; }
Property Value
IsReplayable
Whether the webhook supports replay scenarios.
public bool IsReplayable { get; init; }
Property Value
Target
The WebhookTarget target to send the events to.
public WebhookTarget Target { get; init; }
Property Value
Methods
Deconstruct(out WebhookId, out IEnumerable<EventType>, out WebhookTarget, out EventSequenceId, out bool, out bool)
public void Deconstruct(out WebhookId Identifier, out IEnumerable<EventType> EventTypes, out WebhookTarget Target, out EventSequenceId EventSequenceId, out bool IsReplayable, out bool IsActive)
Parameters
IdentifierWebhookIdEventTypesIEnumerable<EventType>TargetWebhookTargetEventSequenceIdEventSequenceIdIsReplayableboolIsActivebool
Equals(WebhookDefinition?)
public virtual bool Equals(WebhookDefinition? other)
Parameters
otherWebhookDefinition
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 ==(WebhookDefinition?, WebhookDefinition?)
public static bool operator ==(WebhookDefinition? left, WebhookDefinition? right)
Parameters
leftWebhookDefinitionrightWebhookDefinition
Returns
operator !=(WebhookDefinition?, WebhookDefinition?)
public static bool operator !=(WebhookDefinition? left, WebhookDefinition? right)
Parameters
leftWebhookDefinitionrightWebhookDefinition