Skip to content

Interface IEventSubscriptionExecutionBindingCatalog

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

Exposes managed execution bindings for declared event subscriptions.

public interface IEventSubscriptionExecutionBindingCatalog

The catalog is a host-agnostic read contract for companion packs that bind declared subscriptions to a real execution runtime. An empty catalog is a valid answer and means the active eventing pack is still descriptor-first or application-managed for subscription execution.

Gets the currently active managed execution bindings ordered by subscription identifier.

IReadOnlyList<EventSubscriptionExecutionBindingDescriptor> Bindings { get; }

IReadOnlyList<EventSubscriptionExecutionBindingDescriptor>

Looks up the managed execution binding for one declared subscription.

EventSubscriptionExecutionBindingDescriptor? GetBySubscriptionId(string subscriptionId)

subscriptionId string

The stable declared subscription identifier.

EventSubscriptionExecutionBindingDescriptor?

The managed execution binding when one is active; otherwise, null.

TryGet(string, out EventSubscriptionExecutionBindingDescriptor?)

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

Attempts to resolve the managed execution binding for one declared subscription.

bool TryGet(string subscriptionId, out EventSubscriptionExecutionBindingDescriptor? binding)

subscriptionId string

The stable declared subscription identifier.

binding EventSubscriptionExecutionBindingDescriptor?

When this method returns, contains the resolved binding when one is active.

bool

true when a binding exists; otherwise, false.