Class EventEnrollmentOptions
- Namespace
- Cratis.Chronicle.Transactions
- Assembly
- Cratis.Chronicle.dll
Options for enrolling one event, including the provenance of its scope.
public record EventEnrollmentOptions : IEquatable<EventEnrollmentOptions>
- Inheritance
-
EventEnrollmentOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
EventEnrollmentOptions(EventStreamType?, EventStreamId?, EventSourceType?, ConcurrencyScope?, ConcurrencyScopeOrigin, IEnumerable<string>?, IEnumerable<NamedTag>?, DateTimeOffset?, Subject?)
Options for enrolling one event, including the provenance of its scope.
public EventEnrollmentOptions(EventStreamType? EventStreamType = null, EventStreamId? EventStreamId = null, EventSourceType? EventSourceType = null, ConcurrencyScope? ConcurrencyScope = null, ConcurrencyScopeOrigin Origin = ConcurrencyScopeOrigin.Explicit, IEnumerable<string>? Tags = null, IEnumerable<NamedTag>? NamedTags = null, DateTimeOffset? Occurred = null, Subject? Subject = null)
Parameters
EventStreamTypeEventStreamTypeOptional stream type.
EventStreamIdEventStreamIdOptional stream identifier.
EventSourceTypeEventSourceTypeOptional source type.
ConcurrencyScopeConcurrencyScopeOptional concurrency scope.
OriginConcurrencyScopeOriginThe contribution supplying the scope.
TagsIEnumerable<string>Optional plain tags.
NamedTagsIEnumerable<NamedTag>Optional structured tags.
OccurredDateTimeOffset?Optional occurrence time.
SubjectSubjectOptional subject.
EventEnrollmentOptions(EventEnrollmentOptions)
protected EventEnrollmentOptions(EventEnrollmentOptions original)
Parameters
originalEventEnrollmentOptions
Properties
ConcurrencyScope
Optional concurrency scope.
public ConcurrencyScope? ConcurrencyScope { get; init; }
Property Value
DeclaredConcurrency
Gets or inits dimensions resolved at commit instead of a precomputed routing scope.
public ConcurrencyDimensions? DeclaredConcurrency { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventSourceType
Optional source type.
public EventSourceType? EventSourceType { get; init; }
Property Value
EventStreamId
Optional stream identifier.
public EventStreamId? EventStreamId { get; init; }
Property Value
EventStreamType
Optional stream type.
public EventStreamType? EventStreamType { get; init; }
Property Value
NamedTags
Optional structured tags.
public IEnumerable<NamedTag>? NamedTags { get; init; }
Property Value
Occurred
Optional occurrence time.
public DateTimeOffset? Occurred { get; init; }
Property Value
Origin
The contribution supplying the scope.
public ConcurrencyScopeOrigin Origin { get; init; }
Property Value
Subject
Optional subject.
public Subject? Subject { get; init; }
Property Value
Tags
Optional plain tags.
public IEnumerable<string>? Tags { get; init; }
Property Value
Methods
Deconstruct(out EventStreamType?, out EventStreamId?, out EventSourceType?, out ConcurrencyScope?, out ConcurrencyScopeOrigin, out IEnumerable<string>?, out IEnumerable<NamedTag>?, out DateTimeOffset?, out Subject?)
public void Deconstruct(out EventStreamType? EventStreamType, out EventStreamId? EventStreamId, out EventSourceType? EventSourceType, out ConcurrencyScope? ConcurrencyScope, out ConcurrencyScopeOrigin Origin, out IEnumerable<string>? Tags, out IEnumerable<NamedTag>? NamedTags, out DateTimeOffset? Occurred, out Subject? Subject)
Parameters
EventStreamTypeEventStreamTypeEventStreamIdEventStreamIdEventSourceTypeEventSourceTypeConcurrencyScopeConcurrencyScopeOriginConcurrencyScopeOriginTagsIEnumerable<string>NamedTagsIEnumerable<NamedTag>OccurredDateTimeOffset?SubjectSubject
Equals(EventEnrollmentOptions?)
public virtual bool Equals(EventEnrollmentOptions? other)
Parameters
otherEventEnrollmentOptions
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 ==(EventEnrollmentOptions?, EventEnrollmentOptions?)
public static bool operator ==(EventEnrollmentOptions? left, EventEnrollmentOptions? right)
Parameters
leftEventEnrollmentOptionsrightEventEnrollmentOptions
Returns
operator !=(EventEnrollmentOptions?, EventEnrollmentOptions?)
public static bool operator !=(EventEnrollmentOptions? left, EventEnrollmentOptions? right)
Parameters
leftEventEnrollmentOptionsrightEventEnrollmentOptions