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.

ResolveStateMachine(JournalStreamId)

View source
public IStateMachine ResolveStateMachine(JournalStreamId streamId)
Resolves the state machine for streamId.

Parameters

streamIdJournalStreamId
The persisted journal stream id.

Returns

The state machine for the stream.