Table of Contents

Interface IChronicleClient

Namespace
Cratis.Chronicle
Assembly
Cratis.Chronicle.dll

Defines the Cratis client API surface.

public interface IChronicleClient

Properties

CausationManager

Gets the ICausationManager for the client.

ICausationManager CausationManager { get; }

Property Value

ICausationManager

Options

Gets the ChronicleOptions for the client.

ChronicleOptions Options { get; }

Property Value

ChronicleOptions

Methods

GetEventStore(EventStoreName, EventStoreNamespaceName?)

Get an event store by name and optional namespace.

Task<IEventStore> GetEventStore(EventStoreName name, EventStoreNamespaceName? @namespace = null)

Parameters

name EventStoreName

Name of the event store to get.

namespace EventStoreNamespaceName

Optional namespace.

Returns

Task<IEventStore>

IEventStore.

Remarks

If no namespace is specified, the default namespace will be used.

GetEventStores(CancellationToken)

List all the event stores.

Task<IEnumerable<EventStoreName>> GetEventStores(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Optional CancellationToken.

Returns

Task<IEnumerable<EventStoreName>>

An asynchronous enumerable.