Table of Contents

Class RabbitMqExchangeOptions

Namespace
Pipelinez.RabbitMQ.Configuration
Assembly
Pipelinez.RabbitMQ.dll

Configures a RabbitMQ exchange declaration.

public sealed class RabbitMqExchangeOptions
Inheritance
RabbitMqExchangeOptions
Inherited Members

Properties

Arguments

Gets or sets declaration arguments.

public IDictionary<string, object?>? Arguments { get; set; }

Property Value

IDictionary<string, object>

AutoDelete

Gets or sets a value indicating whether the exchange should auto-delete.

public bool AutoDelete { get; set; }

Property Value

bool

Durable

Gets or sets a value indicating whether the exchange should be durable.

public bool Durable { get; set; }

Property Value

bool

Name

Gets or sets the exchange name. Use an empty name for the default exchange.

public string Name { get; set; }

Property Value

string

Type

Gets or sets the exchange type.

public RabbitMqExchangeType Type { get; set; }

Property Value

RabbitMqExchangeType

Methods

Named(string, RabbitMqExchangeType)

Creates exchange options for the specified exchange.

public static RabbitMqExchangeOptions Named(string name, RabbitMqExchangeType type = RabbitMqExchangeType.Direct)

Parameters

name string

The exchange name.

type RabbitMqExchangeType

The exchange type.

Returns

RabbitMqExchangeOptions

The exchange options.

Validate()

Validates the exchange options and returns the same instance when valid.

public RabbitMqExchangeOptions Validate()

Returns

RabbitMqExchangeOptions

The validated options instance.