Interface IProjectionWatcherFactory
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Defines a factory for creating IProjectionWatcher<TModel>.
public interface IProjectionWatcherFactory
Methods
Create<TModel>(Action)
Create a watcher for a specific model.
IProjectionWatcher<TModel> Create<TModel>(Action stopped)
Parameters
stopped
ActionCallback for when the watcher is stopped.
Returns
- IProjectionWatcher<TModel>
An instance of IProjectionWatcher<TModel>.
Type Parameters
TModel
Type of model the watcher is for.