Skip to content

Class ServiceBusOptions.Configurator

Namespace: Momentum.ServiceDefaults.Messaging
Assembly: Momentum.ServiceDefaults.dll

Post-configuration processor that validates and completes ServiceBus configuration after binding.

csharp
public class ServiceBusOptions.Configurator : IPostConfigureOptions<ServiceBusOptions>

Inheritance

objectServiceBusOptions.Configurator

Implements

IPostConfigureOptions<ServiceBusOptions>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

See for detailed configuration information.

Constructors

Configurator(IHostEnvironment)

Post-configuration processor that validates and completes ServiceBus configuration after binding.

csharp
public Configurator(IHostEnvironment env)

Parameters

env IHostEnvironment

Remarks

See for detailed configuration information.

Methods

PostConfigure(string?, ServiceBusOptions)

Completes the configuration of ServiceBus options after initial binding.

csharp
public void PostConfigure(string? name, ServiceBusOptions options)

Parameters

name string?

The name of the options instance being configured.

options ServiceBusOptions

The options instance to post-configure.

Examples

See class-level examples in .

Remarks

See for detailed configuration information.

Exceptions

InvalidOperationException

Thrown when domain or service name validation fails.