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