Table of Contents

Class UniqueEventTypeConstraintDefinition

Namespace
Cratis.Chronicle.Events.Constraints
Assembly
Cratis.Chronicle.dll

Represents a definition of a unique event type constraint.

public record UniqueEventTypeConstraintDefinition : IConstraintDefinition, IEquatable<UniqueEventTypeConstraintDefinition>
Inheritance
UniqueEventTypeConstraintDefinition
Implements
Inherited Members

Constructors

UniqueEventTypeConstraintDefinition(ConstraintName, ConstraintViolationMessageProvider, EventTypeId, EventTypeId?)

Represents a definition of a unique event type constraint.

public UniqueEventTypeConstraintDefinition(ConstraintName Name, ConstraintViolationMessageProvider MessageCallback, EventTypeId EventTypeId, EventTypeId? RemovedWith)

Parameters

Name ConstraintName

Name of the constraint.

MessageCallback ConstraintViolationMessageProvider

the callback that provides the ConstraintViolationMessage of the constraint.

EventTypeId EventTypeId

The EventTypeId the constraint is for.

RemovedWith EventTypeId

The EventTypeId of the event that removes the constraint.

Properties

EventTypeId

The EventTypeId the constraint is for.

public EventTypeId EventTypeId { get; init; }

Property Value

EventTypeId

MessageCallback

the callback that provides the ConstraintViolationMessage of the constraint.

public ConstraintViolationMessageProvider MessageCallback { get; init; }

Property Value

ConstraintViolationMessageProvider

Name

Name of the constraint.

public ConstraintName Name { get; init; }

Property Value

ConstraintName

RemovedWith

The EventTypeId of the event that removes the constraint.

public EventTypeId? RemovedWith { get; init; }

Property Value

EventTypeId