using xEventService.Models; using xEventService.Constants; 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; /// /// ZeroMQ Specific Options ... /// Only used when Broker is XZeroMQ ... /// public XZeroMQOptions ZeroMQ { get; set; } = new XZeroMQOptions(); /// /// RabbitMQ Specific Options ... /// Only used when Broker is XRabbitMQ ... /// public XRabbitMQOptions RabbitMQ { get; set; } = new XRabbitMQOptions(); } }