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
OriginConcurrencyScopeOriginExplicit or aggregate read provenance.
LabelEventSourceIdThe commit label.
ScopeConcurrencyScopeThe captured condition.
EventStoreEventStoreNameThe target store.
NamespaceEventStoreNamespaceNameThe target namespace.
EventSequenceIdEventSequenceIdThe target sequence.
DescriptionstringThe read description.
ContributedRead(ContributedRead)
protected ContributedRead(ContributedRead original)
Parameters
originalContributedRead
Properties
Description
The read description.
public string Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventSequenceId
The target sequence.
public EventSequenceId EventSequenceId { get; init; }
Property Value
EventStore
The target store.
public EventStoreName EventStore { get; init; }
Property Value
Label
The commit label.
public EventSourceId Label { get; init; }
Property Value
Namespace
The target namespace.
public EventStoreNamespaceName Namespace { get; init; }
Property Value
Origin
Explicit or aggregate read provenance.
public ConcurrencyScopeOrigin Origin { get; init; }
Property Value
Scope
The captured condition.
public ConcurrencyScope Scope { get; init; }
Property Value
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
OriginConcurrencyScopeOriginLabelEventSourceIdScopeConcurrencyScopeEventStoreEventStoreNameNamespaceEventStoreNamespaceNameEventSequenceIdEventSequenceIdDescriptionstring
Equals(ContributedRead?)
public virtual bool Equals(ContributedRead? other)
Parameters
otherContributedRead
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 ==(ContributedRead?, ContributedRead?)
public static bool operator ==(ContributedRead? left, ContributedRead? right)
Parameters
leftContributedReadrightContributedRead
Returns
operator !=(ContributedRead?, ContributedRead?)
public static bool operator !=(ContributedRead? left, ContributedRead? right)
Parameters
leftContributedReadrightContributedRead