Class UnitOfWorkEnrollment

Namespace
Cratis.Chronicle.Transactions
Assembly
Cratis.Chronicle.dll

Represents the events about to be enrolled for one event source in one call.

public record UnitOfWorkEnrollment : IEquatable<UnitOfWorkEnrollment>
Inheritance
UnitOfWorkEnrollment
Implements
Inherited Members
Extension Methods

Constructors

UnitOfWorkEnrollment(EventSequenceId, EventSourceId, ConcurrencyScope, IReadOnlyList<object>)

Represents the events about to be enrolled for one event source in one call.

public UnitOfWorkEnrollment(EventSequenceId EventSequenceId, EventSourceId EventSourceId, ConcurrencyScope SuppliedScope, IReadOnlyList<object> Events)

Parameters

EventSequenceId EventSequenceId

The event sequence receiving the events.

EventSourceId EventSourceId

The event source receiving the events.

SuppliedScope ConcurrencyScope

The caller's scope, or NotSet.

Events IReadOnlyList<object>

The events for this source in this call.

UnitOfWorkEnrollment(UnitOfWorkEnrollment)

protected UnitOfWorkEnrollment(UnitOfWorkEnrollment original)

Parameters

original UnitOfWorkEnrollment

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EventSequenceId

The event sequence receiving the events.

public EventSequenceId EventSequenceId { get; init; }

Property Value

EventSequenceId

EventSourceId

The event source receiving the events.

public EventSourceId EventSourceId { get; init; }

Property Value

EventSourceId

Events

The events for this source in this call.

public IReadOnlyList<object> Events { get; init; }

Property Value

IReadOnlyList<object>

SuppliedScope

The caller's scope, or NotSet.

public ConcurrencyScope SuppliedScope { get; init; }

Property Value

ConcurrencyScope

Methods

Deconstruct(out EventSequenceId, out EventSourceId, out ConcurrencyScope, out IReadOnlyList<object>)

public void Deconstruct(out EventSequenceId EventSequenceId, out EventSourceId EventSourceId, out ConcurrencyScope SuppliedScope, out IReadOnlyList<object> Events)

Parameters

EventSequenceId EventSequenceId
EventSourceId EventSourceId
SuppliedScope ConcurrencyScope
Events IReadOnlyList<object>

Equals(UnitOfWorkEnrollment?)

public virtual bool Equals(UnitOfWorkEnrollment? other)

Parameters

other UnitOfWorkEnrollment

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(UnitOfWorkEnrollment?, UnitOfWorkEnrollment?)

public static bool operator ==(UnitOfWorkEnrollment? left, UnitOfWorkEnrollment? right)

Parameters

left UnitOfWorkEnrollment
right UnitOfWorkEnrollment

Returns

bool

operator !=(UnitOfWorkEnrollment?, UnitOfWorkEnrollment?)

public static bool operator !=(UnitOfWorkEnrollment? left, UnitOfWorkEnrollment? right)

Parameters

left UnitOfWorkEnrollment
right UnitOfWorkEnrollment

Returns

bool