Skip to content

Interface ISagaChoreographyPublicationRuntimeStateCatalog

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

Exposes the operator-facing live saga-choreography publication state currently reported for the active runtime.

public interface ISagaChoreographyPublicationRuntimeStateCatalog

Gets the reported choreography publication-state entries visible to the current runtime.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> States { get; }

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

Gets the reported publication-state entries for one choreography behavior.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetByBehaviorId(string behaviorId)

behaviorId string

The stable choreography behavior identifier to filter by.

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

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

Gets the reported publication-state entries that targeted the requested channel.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetByChannelId(string channelId)

channelId string

The logical channel identifier to filter by.

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

The matching publication-state entries, or an empty list when no publication targeted that channel.

Gets the reported publication-state entries associated with one correlation identifier.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetByCorrelationId(string correlationId)

correlationId string

The correlation identifier to filter by.

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

The matching publication-state entries, or an empty list when none reported that correlation.

Gets the latest reported publication state for one choreography publication path.

SagaChoreographyPublicationRuntimeState? GetById(string id)

id string

The stable runtime-state identifier to resolve.

SagaChoreographyPublicationRuntimeState?

The latest reported publication state, or null when that identifier has not reported choreography runtime state.

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

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetBySourceModule(string sourceModuleId)

sourceModuleId string

The source module identifier to filter by.

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

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

Gets the reported publication-state entries exposed over one transport.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetByTransportId(string transportId)

transportId string

The stable transport identifier to filter by.

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

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

Gets the reported publication-state entries that currently represent compensation work.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetCompensationPublications()

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

The matching compensation publication-state entries, or an empty list when none reported compensation posture.

Gets the reported publication-state entries whose latest observation is failed.

IReadOnlyList<SagaChoreographyPublicationRuntimeState> GetFailedPublications()

IReadOnlyList<SagaChoreographyPublicationRuntimeState>

The matching failed publication-state entries, or an empty list when none currently report a failed posture.

TryGetById(string, out SagaChoreographyPublicationRuntimeState?)

Section titled “ TryGetById(string, out SagaChoreographyPublicationRuntimeState?)”

Tries to get the latest reported publication state for one choreography publication path.

bool TryGetById(string id, out SagaChoreographyPublicationRuntimeState? state)

id string

The stable runtime-state identifier to resolve.

state SagaChoreographyPublicationRuntimeState?

Receives the latest reported publication state when that identifier has reported one.

bool

true when a reported state exists; otherwise, false.