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 : IEventStoreCatalogInheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEventStoreCatalog
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”EventStreamCatalog(IEnumerable<IEventStoreContributor>)
Section titled “ EventStreamCatalog(IEnumerable<IEventStoreContributor>)”Initializes a new instance of the
public EventStreamCatalog(IEnumerable<IEventStoreContributor> contributors)Parameters
Section titled “Parameters”contributors IEnumerable<IEventStoreContributor>
The contributors that project event-stream descriptors.
Properties
Section titled “Properties”Gets all event-stream descriptors contributed to the current runtime.
public IReadOnlyList<EventStreamDescriptor> All { get; }Property Value
Section titled “Property Value”IReadOnlyList<EventStreamDescriptor>
Methods
Section titled “Methods”FindById(string)
Section titled “ FindById(string)”Finds one event-stream descriptor by its stable identifier.
public EventStreamDescriptor? FindById(string id)Parameters
Section titled “Parameters”id string
The event-stream identifier to resolve.
Returns
Section titled “Returns”EventStreamDescriptor?
The matching descriptor, or null when none match.
GetByProvider(string)
Section titled “ GetByProvider(string)”Gets the event-stream descriptors backed by the requested provider identifier.
public IReadOnlyList<EventStreamDescriptor> GetByProvider(string provider)Parameters
Section titled “Parameters”provider string
The provider identifier to filter by.
Returns
Section titled “Returns”IReadOnlyList<EventStreamDescriptor>
The matching descriptors, or an empty list when the provider contributes none.