Skip to content

JournalReplayContext Methods

Provides services used by journaled states during replay.

GetRequiredCommandCodec(string, TCodec)

View source
public TCodec GetRequiredCommandCodec<TCodec>(string entryFormatKey, TCodec writeCommandCodec)
Gets the command codec for entryFormatKey.

Parameters

entryFormatKeystring
The journal format key for the entry being replayed.
writeCommandCodecTCodec
The command codec for the configured write journal format.

Returns

The command codec for entryFormatKey.

ResolveState(JournalStreamId)

View source
public IJournaledState ResolveState(JournalStreamId streamId)
Resolves the journaled state for streamId.

Parameters

streamIdJournalStreamId
The persisted journal stream id.

Returns

The journaled state for the stream.