Skip to main content
Table of Contents

Interface IMessagingIdentifier

Namespace
Stratara.Abstractions.Messaging
Assembly
Stratara.Abstractions.dll

Centralises topic + subscription names so every producer/consumer agrees on the wire-level identifiers. Names typically include a per-environment prefix to keep shared infrastructure isolated between dev / test / prod.

public interface IMessagingIdentifier
Extension Methods

Properties

CommandSubscription

Subscription read by the command-handling worker.

string CommandSubscription { get; }

Property Value

string

CommandTopic

Topic carrying serialised CommandEnvelope messages.

string CommandTopic { get; }

Property Value

string

EventBundleSagaSubscription

Subscription read by the saga worker over the event-bundle topic.

string EventBundleSagaSubscription { get; }

Property Value

string

EventBundleSubscription

Subscription read by the projection worker.

string EventBundleSubscription { get; }

Property Value

string

EventBundleTopic

Topic carrying serialised EventBundle messages.

string EventBundleTopic { get; }

Property Value

string

HeavyCommandSubscription

Subscription read by the dedicated heavy-command worker over the heavy-command topic.

string HeavyCommandSubscription { get; }

Property Value

string

HeavyCommandTopic

Topic carrying serialised CommandEnvelope messages for commands marked IHeavyCommand. Drained by a dedicated heavy-command worker so long-running commands cannot starve the interactive lane.

string HeavyCommandTopic { get; }

Property Value

string

NotificationTopic

Topic used for fan-out client notifications (SignalR bridge).

string NotificationTopic { get; }

Property Value

string

Methods

GetCommandSubscription(Type)

Returns the command subscription that owns a command of commandType: HeavyCommandSubscription when the type implements IHeavyCommand, otherwise CommandSubscription.

string GetCommandSubscription(Type commandType)

Parameters

commandType Type

The runtime command type being dispatched.

Returns

string

The resolved command subscription name.

GetCommandTopic(Type)

Returns the command topic a command of commandType must be published to: HeavyCommandTopic when the type implements IHeavyCommand, otherwise CommandTopic.

string GetCommandTopic(Type commandType)

Parameters

commandType Type

The runtime command type being dispatched.

Returns

string

The resolved command topic name.

IsHeavy(Type)

Whether commandType is a heavy command routed to the dedicated lane.

public static bool IsHeavy(Type commandType)

Parameters

commandType Type

The runtime command type.

Returns

bool

true if the type implements IHeavyCommand.