Class ProjectionWatcher<TModel>
- Namespace
- Cratis.Chronicle.Projections
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IProjectionWatcher<TModel>.
public class ProjectionWatcher<TModel> : IProjectionWatcher<TModel>, IProjectionWatcher, IDisposable
Type Parameters
TModel
Type of model the watcher is for.
- Inheritance
-
ProjectionWatcher<TModel>
- Implements
-
IProjectionWatcher<TModel>
- Inherited Members
Constructors
ProjectionWatcher(IEventStore, Action)
Initializes a new instance of the ProjectionWatcher<TModel> class.
public ProjectionWatcher(IEventStore eventStore, Action stopped)
Parameters
eventStore
IEventStoreIEventStore the watcher is for.
stopped
ActionCallback for when the watcher is stopped.
Properties
Observable
Gets the observable for the projection.
public IObservable<ProjectionChangeset<TModel>> Observable { get; }
Property Value
- IObservable<ProjectionChangeset<TModel>>
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Start()
Start the watcher.
public void Start()
Stop()
Stop the watcher. Will be removed from the manager.
public void Stop()