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

Class EventStreamCatalog

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

Namespace: Cephalon.EventSourcing.Services
Assembly: Cephalon.EventSourcing.dll

Exposes the merged set of event-stream descriptors contributed to the active runtime.

public sealed class EventStreamCatalog : IEventStoreCatalog

objectEventStreamCatalog

IEventStoreCatalog

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

EventStreamCatalog(IEnumerable<IEventStoreContributor>)

Section titled “ EventStreamCatalog(IEnumerable<IEventStoreContributor>)”

Initializes a new instance of the class.

public EventStreamCatalog(IEnumerable<IEventStoreContributor> contributors)

contributors IEnumerable<IEventStoreContributor>

The contributors that project event-stream descriptors.

Gets all event-stream descriptors contributed to the current runtime.

public IReadOnlyList<EventStreamDescriptor> All { get; }

IReadOnlyList<EventStreamDescriptor>

Finds one event-stream descriptor by its stable identifier.

public EventStreamDescriptor? FindById(string id)

id string

The event-stream identifier to resolve.

EventStreamDescriptor?

The matching descriptor, or null when none match.

Gets the event-stream descriptors backed by the requested provider identifier.

public IReadOnlyList<EventStreamDescriptor> GetByProvider(string provider)

provider string

The provider identifier to filter by.

IReadOnlyList<EventStreamDescriptor>

The matching descriptors, or an empty list when the provider contributes none.