Interface IReadModelWatcher<TReadModel>

Namespace
Cratis.Chronicle.ReadModels
Assembly
Cratis.Chronicle.dll

Defines a watcher for a read model.

public interface IReadModelWatcher<TReadModel> : IReadModelWatcher

Type Parameters

TReadModel

Type of read model the watcher is for.

Inherited Members
Extension Methods

Properties

Observable

Gets the observable for the read model.

IObservable<ReadModelChangeset<TReadModel>> Observable { get; }

Property Value

IObservable<ReadModelChangeset<TReadModel>>

Subscribed

Gets a Task that completes once the watcher's underlying change-stream subscription on the server has been established. Awaiting this guarantees that any events appended afterwards will be observed through Observable.

Task Subscribed { get; }

Property Value

Task