Files
xEventService/Configuration/XEventServiceConfiguration.cs
T

35 lines
1023 B
C#

using System.Collections.Generic;
using RabbitMQ.Client;
using xEventService.Constants;
using xEventService.Models;
namespace xEventService.Configuration
{
/// <summary>
/// a configuration class for describing how to connect rabbit mq server
/// and how channels must be declared ...
/// </summary>
public class XEventServiceConfiguration
{
/// <summary>
/// Message Broker Address ...
/// </summary>
public string Url { get; set; }
/// <summary>
/// Max Retries to Sending Message ...
/// </summary>
public int MaxRetries { get; set; } = 3;
/// <summary>
/// Allowed Message Broker ...
/// </summary>
public XEventBroker Broker { get; set; } = XEventBroker.None;
/// <summary>
/// RabbitMQ Specific Options ...
/// Only used when Broker is XRabbitMQ ...
/// </summary>
public XRabbitMQOptions RabbitMQ { get; set; } = new XRabbitMQOptions();
}
}