Table of Contents

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

stopped Action

Callback for when the watcher is stopped.

Returns

IReadModelWatcher<TReadModel>

An instance of IReadModelWatcher<TReadModel>.

Type Parameters

TReadModel

Type of read model the watcher is for.