Class EventStream
- Namespace
- Cratis.Chronicle.EventSources
- Assembly
- Cratis.Chronicle.dll
Represents an event stream declared by an IEventSource definition.
public record EventStream : IEquatable<EventStream>
- Inheritance
-
EventStream
- Implements
- Inherited Members
- Extension Methods
Constructors
EventStream(EventStream)
protected EventStream(EventStream original)
Parameters
originalEventStream
EventStream(string, string, ConcurrencyDimensions)
Represents an event stream declared by an IEventSource definition.
public EventStream(string Name, string Description, ConcurrencyDimensions Concurrency)
Parameters
NamestringThe name of the stream, which is the event stream type of appended events.
DescriptionstringThe description of the stream.
ConcurrencyConcurrencyDimensionsThe dimensions that take part in concurrency checks for the stream.
Properties
Concurrency
The dimensions that take part in concurrency checks for the stream.
public ConcurrencyDimensions Concurrency { get; init; }
Property Value
Description
The description of the stream.
public string Description { get; init; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
EventStreamType
Gets the name as an EventStreamType.
public EventStreamType EventStreamType { get; }
Property Value
Name
The name of the stream, which is the event stream type of appended events.
public string Name { get; init; }
Property Value
Methods
Deconstruct(out string, out string, out ConcurrencyDimensions)
public void Deconstruct(out string Name, out string Description, out ConcurrencyDimensions Concurrency)
Parameters
NamestringDescriptionstringConcurrencyConcurrencyDimensions
Equals(EventStream?)
public virtual bool Equals(EventStream? other)
Parameters
otherEventStream
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 ==(EventStream?, EventStream?)
public static bool operator ==(EventStream? left, EventStream? right)
Parameters
leftEventStreamrightEventStream
Returns
operator !=(EventStream?, EventStream?)
public static bool operator !=(EventStream? left, EventStream? right)
Parameters
leftEventStreamrightEventStream