Class ProjectionWatcherFactory
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IProjectionWatcherFactory.
public class ProjectionWatcherFactory : IProjectionWatcherFactory
- Inheritance
-
ProjectionWatcherFactory
- Implements
- Inherited Members
Constructors
ProjectionWatcherFactory(IEventStore)
Represents an implementation of IProjectionWatcherFactory.
public ProjectionWatcherFactory(IEventStore eventStore)
Parameters
eventStore
IEventStoreIEventStore the factory is for.
Methods
Create<TModel>(Action)
Create a watcher for a specific model.
public 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.