Interface IChronicleClient
Defines the Cratis client API surface.
public interface IChronicleClient
Properties
CausationManager
Gets the ICausationManager for the client.
ICausationManager CausationManager { get; }
Property Value
Options
Gets the ChronicleOptions for the client.
ChronicleOptions Options { get; }
Property Value
Methods
GetEventStore(EventStoreName, EventStoreNamespaceName?)
Get an event store by name and optional namespace.
Task<IEventStore> GetEventStore(EventStoreName name, EventStoreNamespaceName? @namespace = null)
Parameters
nameEventStoreNameName of the event store to get.
namespaceEventStoreNamespaceNameOptional namespace.
Returns
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
cancellationTokenCancellationTokenOptional CancellationToken.
Returns
- Task<IEnumerable<EventStoreName>>
An asynchronous enumerable.