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

original EventStream

EventStream(string, string, ConcurrencyDimensions)

Represents an event stream declared by an IEventSource definition.

public EventStream(string Name, string Description, ConcurrencyDimensions Concurrency)

Parameters

Name string

The name of the stream, which is the event stream type of appended events.

Description string

The description of the stream.

Concurrency ConcurrencyDimensions

The 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

ConcurrencyDimensions

Description

The description of the stream.

public string Description { get; init; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

EventStreamType

Gets the name as an EventStreamType.

public EventStreamType EventStreamType { get; }

Property Value

EventStreamType

Name

The name of the stream, which is the event stream type of appended events.

public string Name { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out ConcurrencyDimensions)

public void Deconstruct(out string Name, out string Description, out ConcurrencyDimensions Concurrency)

Parameters

Name string
Description string
Concurrency ConcurrencyDimensions

Equals(EventStream?)

public virtual bool Equals(EventStream? other)

Parameters

other EventStream

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

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

Parameters

left EventStream
right EventStream

Returns

bool

operator !=(EventStream?, EventStream?)

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

Parameters

left EventStream
right EventStream

Returns

bool