Interface IReadModelWatcherFactory
- Namespace
- Cratis.Chronicle.ReadModels
- Assembly
- Cratis.Chronicle.dll
Defines a factory for creating IReadModelWatcher<TReadModel>.
public interface IReadModelWatcherFactory
Methods
Create<TReadModel>(Action)
Create a watcher for a specific model.
IReadModelWatcher<TReadModel> Create<TReadModel>(Action stopped)
Parameters
stoppedActionCallback for when the watcher is stopped.
Returns
- IReadModelWatcher<TReadModel>
An instance of IReadModelWatcher<TReadModel>.
Type Parameters
TReadModelType of read model the watcher is for.