ข้ามไปยังเนื้อหา

Class EventStreamDescriptor

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.EventSourcing
Assembly: Cephalon.Abstractions.dll

Describes one logical event stream visible to the current runtime.

public sealed record EventStreamDescriptor : IEquatable<EventStreamDescriptor>

objectEventStreamDescriptor

IEquatable<EventStreamDescriptor>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

EventStreamDescriptor(string, string, string, string, string, string, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)

Section titled “ EventStreamDescriptor(string, string, string, string, string, string, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)”

Initializes a new instance of the class.

public EventStreamDescriptor(string id, string displayName, string description, string sourceModuleId, string provider, string mode = "append-only", IReadOnlyList<string>? tags = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable event-stream identifier.

displayName string

The operator-facing event-stream name.

description string

The human-readable event-stream description.

sourceModuleId string

The module identifier that owns the event stream.

provider string

The provider identifier that persists the stream.

mode string

The stream persistence mode. The default is append-only.

tags IReadOnlyList<string>?

The descriptive tags associated with the stream.

metadata IReadOnlyDictionary<string, string>?

The provider-specific metadata associated with the stream.

Gets the normalized human-readable description.

public string Description { get; }

string

Gets the normalized operator-facing name.

public string DisplayName { get; }

string

Gets the normalized event-stream identifier.

public string Id { get; }

string

Gets the normalized provider-specific metadata associated with the stream.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the normalized stream persistence mode.

public string Mode { get; }

string

Gets the normalized provider identifier.

public string Provider { get; }

string

Gets the normalized source module identifier.

public string SourceModuleId { get; }

string

Gets the normalized descriptive tags associated with the stream.

public IReadOnlyList<string> Tags { get; }

IReadOnlyList<string>