Class ContributedRead

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

A stream or aggregate read's exact dependency, enrolled before exposing its value.

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

Constructors

ContributedRead(ConcurrencyScopeOrigin, EventSourceId, ConcurrencyScope, EventStoreName, EventStoreNamespaceName, EventSequenceId, string)

A stream or aggregate read's exact dependency, enrolled before exposing its value.

public ContributedRead(ConcurrencyScopeOrigin Origin, EventSourceId Label, ConcurrencyScope Scope, EventStoreName EventStore, EventStoreNamespaceName Namespace, EventSequenceId EventSequenceId, string Description)

Parameters

Origin ConcurrencyScopeOrigin

Explicit or aggregate read provenance.

Label EventSourceId

The commit label.

Scope ConcurrencyScope

The captured condition.

EventStore EventStoreName

The target store.

Namespace EventStoreNamespaceName

The target namespace.

EventSequenceId EventSequenceId

The target sequence.

Description string

The read description.

ContributedRead(ContributedRead)

protected ContributedRead(ContributedRead original)

Parameters

original ContributedRead

Properties

Description

The read description.

public string Description { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EventSequenceId

The target sequence.

public EventSequenceId EventSequenceId { get; init; }

Property Value

EventSequenceId

EventStore

The target store.

public EventStoreName EventStore { get; init; }

Property Value

EventStoreName

Label

The commit label.

public EventSourceId Label { get; init; }

Property Value

EventSourceId

Namespace

The target namespace.

public EventStoreNamespaceName Namespace { get; init; }

Property Value

EventStoreNamespaceName

Origin

Explicit or aggregate read provenance.

public ConcurrencyScopeOrigin Origin { get; init; }

Property Value

ConcurrencyScopeOrigin

Scope

The captured condition.

public ConcurrencyScope Scope { get; init; }

Property Value

ConcurrencyScope

Methods

Deconstruct(out ConcurrencyScopeOrigin, out EventSourceId, out ConcurrencyScope, out EventStoreName, out EventStoreNamespaceName, out EventSequenceId, out string)

public void Deconstruct(out ConcurrencyScopeOrigin Origin, out EventSourceId Label, out ConcurrencyScope Scope, out EventStoreName EventStore, out EventStoreNamespaceName Namespace, out EventSequenceId EventSequenceId, out string Description)

Parameters

Origin ConcurrencyScopeOrigin
Label EventSourceId
Scope ConcurrencyScope
EventStore EventStoreName
Namespace EventStoreNamespaceName
EventSequenceId EventSequenceId
Description string

Equals(ContributedRead?)

public virtual bool Equals(ContributedRead? other)

Parameters

other ContributedRead

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 ==(ContributedRead?, ContributedRead?)

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

Parameters

left ContributedRead
right ContributedRead

Returns

bool

operator !=(ContributedRead?, ContributedRead?)

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

Parameters

left ContributedRead
right ContributedRead

Returns

bool