Skip to main content
Table of Contents

Class MessagingOptions

Namespace
Stratara.Shared.Messaging
Assembly
Stratara.Shared.dll

Strongly-typed options object bound to the Messaging configuration section. Holds the per-environment topic and subscription names used by the outbox / message bus, looked up via case-insensitive name matching.

public sealed class MessagingOptions
Inheritance
MessagingOptions
Inherited Members
Extension Methods

Fields

SectionName

Configuration section name (Messaging) that hosts these options.

public const string SectionName = "Messaging"

Field Value

string

Properties

Topics

Configured topics, each carrying its own resolved Value plus per-subscription overrides.

public MessagingOptions.TopicOptions[] Topics { get; set; }

Property Value

TopicOptions[]

Methods

GetSubscription(string, string)

Returns the MessagingOptions.TopicOptions.SubscriptionOptions for a named subscription on a named topic, or null if either is absent.

public MessagingOptions.TopicOptions.SubscriptionOptions? GetSubscription(string topicName, string subscriptionName)

Parameters

topicName string

Logical topic name.

subscriptionName string

Logical subscription name.

Returns

MessagingOptions.TopicOptions.SubscriptionOptions

The matching subscription entry or null.

GetSubscriptionValue(string, string)

Returns the resolved subscription value for the given topic / subscription pair, or null if either is missing or the value is blank.

public string? GetSubscriptionValue(string topicName, string subscriptionName)

Parameters

topicName string

Logical topic name.

subscriptionName string

Logical subscription name.

Returns

string

The configured subscription value or null.

GetTopic(string)

Returns the MessagingOptions.TopicOptions entry whose Name matches name case-insensitively, or null if absent.

public MessagingOptions.TopicOptions? GetTopic(string name)

Parameters

name string

Logical topic name (e.g. "Command", "EventBundle").

Returns

MessagingOptions.TopicOptions

The matching topic entry or null.

GetTopicValue(string)

Returns the resolved topic value for name, or null if the topic is missing or its value is blank.

public string? GetTopicValue(string name)

Parameters

name string

Logical topic name.

Returns

string

The configured topic value or null.