Skip to content

Interface IDurableExecutionRuntimeStateCatalog

Namespace: Cephalon.Abstractions.Execution
Assembly: Cephalon.Abstractions.dll

Exposes the operator-facing durable-execution runtime state currently reported for active streams.

public interface IDurableExecutionRuntimeStateCatalog

Gets the reported durable-execution state entries visible to the current runtime.

IReadOnlyList<DurableExecutionRuntimeState> States { get; }

IReadOnlyList<DurableExecutionRuntimeState>

Gets the reported durable-execution state entries for one durable behavior.

IReadOnlyList<DurableExecutionRuntimeState> GetByBehaviorId(string behaviorId)

behaviorId string

The stable durable behavior identifier to filter by.

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when the behavior has not reported runtime state.

Gets the reported durable-execution state entries that currently include the requested compensation action.

IReadOnlyList<DurableExecutionRuntimeState> GetByCompensationActionId(string compensationActionId)

compensationActionId string

The stable compensation-action identifier to filter by.

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when no stream currently reports that compensation action.

Gets the reported durable-execution state entries that currently include the requested pending signal.

IReadOnlyList<DurableExecutionRuntimeState> GetByPendingSignalId(string signalId)

signalId string

The stable signal identifier to filter by.

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when no stream currently reports that signal.

Gets the reported durable-execution state entries that currently include the requested pending timer.

IReadOnlyList<DurableExecutionRuntimeState> GetByPendingTimerId(string timerId)

timerId string

The stable timer identifier to filter by.

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when no stream currently reports that timer.

Gets the reported durable-execution state entries contributed by one source module.

IReadOnlyList<DurableExecutionRuntimeState> GetBySourceModule(string sourceModuleId)

sourceModuleId string

The source module identifier to filter by.

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when the module has not reported runtime state.

Gets the latest reported durable-execution state for one stream.

DurableExecutionRuntimeState? GetByStreamId(string streamId)

streamId string

The stable stream identifier to resolve.

DurableExecutionRuntimeState?

The latest reported state, or null when that stream has not reported runtime state.

Gets the reported durable-execution state entries exposed over one transport.

IReadOnlyList<DurableExecutionRuntimeState> GetByTransportId(string transportId)

transportId string

The stable transport identifier to filter by.

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when none reported runtime state for that transport.

Gets the reported durable-execution state entries that currently expose one or more compensation actions.

IReadOnlyList<DurableExecutionRuntimeState> GetWithCompensationActions()

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when no stream currently reports compensation actions.

Gets the reported durable-execution state entries that currently have one or more pending signals.

IReadOnlyList<DurableExecutionRuntimeState> GetWithPendingSignals()

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when no stream currently reports pending signals.

Gets the reported durable-execution state entries that currently have one or more pending timers.

IReadOnlyList<DurableExecutionRuntimeState> GetWithPendingTimers()

IReadOnlyList<DurableExecutionRuntimeState>

The matching state entries, or an empty list when no stream currently reports pending timers.

TryGetByStreamId(string, out DurableExecutionRuntimeState?)

Section titled “ TryGetByStreamId(string, out DurableExecutionRuntimeState?)”

Tries to get the latest reported durable-execution state for one stream.

bool TryGetByStreamId(string streamId, out DurableExecutionRuntimeState? state)

streamId string

The stable stream identifier to resolve.

state DurableExecutionRuntimeState?

Receives the latest reported state when the stream has reported one.

bool

true when a reported state exists; otherwise, false.