Table of Contents

RabbitMqEventBusOptions Class

Definition

Configuration options for RabbitMqEventBus.

public class RabbitMqEventBusOptions : RabbitMqMessageOptions, IValidatableParameterObject, IParameterObject
Inheritance
object
RabbitMqEventBusOptions
Implements
Derived
Inherited Members

Examples

Configure a RabbitMqEventBusOptions with the AMQP URL and exchange settings required for RabbitMQ event publishing and subscription.

using System;
using Savvyio.Extensions.RabbitMQ.EventDriven;

namespace ExampleApp;

public class RabbitMqEventSetup
{
    public static RabbitMqEventBusOptions CreateOptions()
    {
        var options = new RabbitMqEventBusOptions
        {
            AmqpUrl = new Uri("amqp://guest:guest@localhost:5672"),
            ExchangeName = "account-events",
            Persistent = true
        };
        return options;
    }
}

Constructors

Name Description
RabbitMqEventBusOptions()

Initializes a new instance of the RabbitMqEventBusOptions class.

Properties

Name Description
ExchangeName

Gets or sets the name of the exchange.

Methods

Name Description
ValidateOptions()

Determines whether the public read-write properties of this instance are in a valid state.

See Also