Skip to content

Interface IEventSubscriptionRuntimeCatalog

Namespace: Cephalon.Eventing.Services
Assembly: Cephalon.Eventing.dll

Exposes the latest reported runtime state for declared event subscriptions.

public interface IEventSubscriptionRuntimeCatalog

Gets the currently known runtime-state entries ordered by subscription identifier.

IReadOnlyList<EventSubscriptionRuntimeState> States { get; }

IReadOnlyList<EventSubscriptionRuntimeState>

Looks up one reported runtime-state entry by declared subscription identifier.

EventSubscriptionRuntimeState? GetById(string subscriptionId)

subscriptionId string

The stable declared subscription identifier.

EventSubscriptionRuntimeState?

The current runtime state when one has been reported; otherwise, null.

TryGet(string, out EventSubscriptionRuntimeState?)

Section titled “ TryGet(string, out EventSubscriptionRuntimeState?)”

Attempts to look up one reported runtime-state entry by declared subscription identifier.

bool TryGet(string subscriptionId, out EventSubscriptionRuntimeState? state)

subscriptionId string

The stable declared subscription identifier.

state EventSubscriptionRuntimeState?

The current runtime state when one has been reported.

bool

true when one runtime-state entry is available; otherwise, false.