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
AutoDelete
Gets or sets a value indicating whether the exchange should auto-delete.
public bool AutoDelete { get; set; }
Property Value
Durable
Gets or sets a value indicating whether the exchange should be durable.
public bool Durable { get; set; }
Property Value
Name
Gets or sets the exchange name. Use an empty name for the default exchange.
public string Name { get; set; }
Property Value
Type
Gets or sets the exchange type.
public RabbitMqExchangeType Type { get; set; }
Property Value
Methods
Named(string, RabbitMqExchangeType)
Creates exchange options for the specified exchange.
public static RabbitMqExchangeOptions Named(string name, RabbitMqExchangeType type = RabbitMqExchangeType.Direct)
Parameters
namestringThe exchange name.
typeRabbitMqExchangeTypeThe 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.