Table of Contents

Interface IEventStore

Namespace
Cratis.Chronicle
Assembly
Cratis.Chronicle.dll

Defines the event store API surface.

public interface IEventStore

Properties

AggregateRootFactory

IAggregateRootFactory AggregateRootFactory { get; }

Property Value

IAggregateRootFactory

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

IConstraints

EventLog

Gets the IEventLog event sequence.

IEventLog EventLog { get; }

Property Value

IEventLog

EventTypes

Gets the IEventTypes for the event store.

IEventTypes EventTypes { get; }

Property Value

IEventTypes

FailedPartitions

Gets the IFailedPartitions for the event store.

IFailedPartitions FailedPartitions { get; }

Property Value

IFailedPartitions

Jobs

Gets the IJobs for the event store.

IJobs Jobs { get; }

Property Value

IJobs

Name

Gets the Name for the event store.

EventStoreName Name { get; }

Property Value

EventStoreName

Namespace

Gets the namespace for the event store.

EventStoreNamespaceName Namespace { get; }

Property Value

EventStoreNamespaceName

Projections

Gets the IProjections for the event store.

IProjections Projections { get; }

Property Value

IProjections

Reactors

Gets the IReactors for the event store.

IReactors Reactors { get; }

Property Value

IReactors

Reducers

Gets the IReducers for the event store.

IReducers Reducers { get; }

Property Value

IReducers

UnitOfWorkManager

Gets the IClientArtifactsProvider for the event store.

IUnitOfWorkManager UnitOfWorkManager { get; }

Property Value

IUnitOfWorkManager

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 EventSequenceId

The 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 CancellationToken

Optional 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.