Skip to content

Interface IEventSubscriptionCatalog

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

Exposes the merged set of declared event subscriptions available to the active eventing runtime.

public interface IEventSubscriptionCatalog

Gets the effective subscription set after host options and module contributors have both been applied.

IReadOnlyList<EventSubscriptionDescriptor> Subscriptions { get; }

IReadOnlyList<EventSubscriptionDescriptor>

Gets the subscriptions currently bound to one event channel identifier.

IReadOnlyList<EventSubscriptionDescriptor> GetByChannelId(string channelId)

channelId string

The event channel identifier to filter by.

IReadOnlyList<EventSubscriptionDescriptor>

The subscriptions declared for the requested channel.

TryGet(string, out EventSubscriptionDescriptor)

Section titled “ TryGet(string, out EventSubscriptionDescriptor)”

Attempts to resolve a subscription descriptor by identifier.

bool TryGet(string subscriptionId, out EventSubscriptionDescriptor subscription)

subscriptionId string

The subscription identifier to resolve.

subscription EventSubscriptionDescriptor

When this method returns, contains the resolved subscription if found.

bool

true when the subscription exists; otherwise false.