Class ReducerObservers
Represents an implementation of IReducerObservers.
public class ReducerObservers : IReducerObservers
- Inheritance
-
ReducerObservers
- Implements
- Inherited Members
Methods
GetWatcher<TReadModel>()
Get a watcher for a specific read model type.
public IReducerWatcher<TReadModel> GetWatcher<TReadModel>()
Returns
- IReducerWatcher<TReadModel>
An instance of IReducerWatcher<TReadModel>.
Type Parameters
TReadModelType of read model the watcher is for.
NotifyChange<TReadModel>(EventStoreNamespaceName, ReadModelKey, TReadModel?, bool)
Notify observers that a reducer has produced a change.
public void NotifyChange<TReadModel>(EventStoreNamespaceName @namespace, ReadModelKey modelKey, TReadModel? readModel, bool removed)
Parameters
namespaceEventStoreNamespaceNameThe namespace for the event store.
modelKeyReadModelKeyThe ReadModelKey for the model.
readModelTReadModelThe instance of the read model.
removedboolWhether the read model was removed.
Type Parameters
TReadModelType of read model.