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
CommandTopic
Topic carrying serialised CommandEnvelope messages.
string CommandTopic { get; }
Property Value
EventBundleSagaSubscription
Subscription read by the saga worker over the event-bundle topic.
string EventBundleSagaSubscription { get; }
Property Value
EventBundleSubscription
Subscription read by the projection worker.
string EventBundleSubscription { get; }
Property Value
EventBundleTopic
Topic carrying serialised EventBundle messages.
string EventBundleTopic { get; }
Property Value
HeavyCommandSubscription
Subscription read by the dedicated heavy-command worker over the heavy-command topic.
string HeavyCommandSubscription { get; }
Property Value
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
NotificationTopic
Topic used for fan-out client notifications (SignalR bridge).
string NotificationTopic { get; }
Property Value
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
commandTypeTypeThe 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
commandTypeTypeThe 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
commandTypeTypeThe runtime command type.
Returns
- bool
true if the type implements IHeavyCommand.