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
EventSequenceIdEventSequenceIdThe event sequence receiving the events.
EventSourceIdEventSourceIdThe event source receiving the events.
SuppliedScopeConcurrencyScopeThe caller's scope, or NotSet.
EventsIReadOnlyList<object>The events for this source in this call.
UnitOfWorkEnrollment(UnitOfWorkEnrollment)
protected UnitOfWorkEnrollment(UnitOfWorkEnrollment original)
Parameters
originalUnitOfWorkEnrollment
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventSequenceId
The event sequence receiving the events.
public EventSequenceId EventSequenceId { get; init; }
Property Value
EventSourceId
The event source receiving the events.
public EventSourceId EventSourceId { get; init; }
Property Value
Events
The events for this source in this call.
public IReadOnlyList<object> Events { get; init; }
Property Value
SuppliedScope
The caller's scope, or NotSet.
public ConcurrencyScope SuppliedScope { get; init; }
Property Value
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
EventSequenceIdEventSequenceIdEventSourceIdEventSourceIdSuppliedScopeConcurrencyScopeEventsIReadOnlyList<object>
Equals(UnitOfWorkEnrollment?)
public virtual bool Equals(UnitOfWorkEnrollment? other)
Parameters
otherUnitOfWorkEnrollment
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 ==(UnitOfWorkEnrollment?, UnitOfWorkEnrollment?)
public static bool operator ==(UnitOfWorkEnrollment? left, UnitOfWorkEnrollment? right)
Parameters
leftUnitOfWorkEnrollmentrightUnitOfWorkEnrollment
Returns
operator !=(UnitOfWorkEnrollment?, UnitOfWorkEnrollment?)
public static bool operator !=(UnitOfWorkEnrollment? left, UnitOfWorkEnrollment? right)
Parameters
leftUnitOfWorkEnrollmentrightUnitOfWorkEnrollment