Interface IEventStore
Defines the event store API surface.
public interface IEventStore
Properties
AggregateRootFactory
Gets the IAggregateRootFactory.
IAggregateRootFactory AggregateRootFactory { get; }
Property Value
Connection
Gets the Cratis.Chronicle.Connections.IChronicleConnection used for the IEventStore.
IChronicleConnection Connection { get; }
Property Value
- IChronicleConnection
Constraints
Gets the IConstraints for the event store.
IConstraints Constraints { get; }
Property Value
EventLog
Gets the IEventLog event sequence.
IEventLog EventLog { get; }
Property Value
EventTypes
Gets the IEventTypes for the event store.
IEventTypes EventTypes { get; }
Property Value
FailedPartitions
Gets the IFailedPartitions for the event store.
IFailedPartitions FailedPartitions { get; }
Property Value
Jobs
Gets the IJobs for the event store.
IJobs Jobs { get; }
Property Value
Name
Gets the Name for the event store.
EventStoreName Name { get; }
Property Value
Namespace
Gets the namespace for the event store.
EventStoreNamespaceName Namespace { get; }
Property Value
Projections
Gets the IProjections for the event store.
IProjections Projections { get; }
Property Value
Reactors
Gets the IReactors for the event store.
IReactors Reactors { get; }
Property Value
Reducers
Gets the IReducers for the event store.
IReducers Reducers { get; }
Property Value
UnitOfWorkManager
Gets the IClientArtifactsProvider for the event store.
IUnitOfWorkManager UnitOfWorkManager { get; }
Property Value
Methods
DiscoverAll()
Discover all artifacts for the event store.
Task DiscoverAll()
Returns
- Task
Awaitable task.
GetEventSequence(EventSequenceId)
Get an event sequence by id.
IEventSequence GetEventSequence(EventSequenceId id)
Parameters
id
EventSequenceIdThe identifier of the event sequence to get.
Returns
- IEventSequence
IEventSequence instance.
GetNamespaces(CancellationToken)
List namespaces in the event store.
Task<IEnumerable<EventStoreNamespaceName>> GetNamespaces(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenOptional CancellationToken.
Returns
- Task<IEnumerable<EventStoreNamespaceName>>
An asynchronous enumerable for all namespace names.
RegisterAll()
Register all artifacts for the event store.
Task RegisterAll()
Returns
- Task
Awaitable task.