Table of Contents

Class ReadModelWatcherFactory

Namespace
Cratis.Chronicle.ReadModels
Assembly
Cratis.Chronicle.dll

Represents an implementation of IReadModelWatcherFactory.

public class ReadModelWatcherFactory : IReadModelWatcherFactory
Inheritance
ReadModelWatcherFactory
Implements
Inherited Members

Constructors

ReadModelWatcherFactory(IEventStore, JsonSerializerOptions)

Represents an implementation of IReadModelWatcherFactory.

public ReadModelWatcherFactory(IEventStore eventStore, JsonSerializerOptions jsonSerializerOptions)

Parameters

eventStore IEventStore

IEventStore the factory is for.

jsonSerializerOptions JsonSerializerOptions

Options for JSON serialization.

Methods

Create<TReadModel>(Action)

Create a watcher for a specific model.

public 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.