public RabbitMqConfiguration() { PublishConfirmTimeout = TimeSpan.FromSeconds(1); PersistentDeliveryMode = true; AutoCloseConnection = true; AutomaticRecovery = true; TopologyRecovery = true; RecoveryInterval = TimeSpan.FromSeconds(10); GracefulShutdown = TimeSpan.FromSeconds(10); Ssl = new SslOption { Enabled = false }; Hostnames = new List <string>(); Exchange = new GeneralExchangeConfiguration { AutoDelete = false, Durable = true, Type = ExchangeType.Topic }; Queue = new GeneralQueueConfiguration { Exclusive = false, AutoDelete = false, Durable = true }; VirtualHost = "/"; Username = "******"; Password = "******"; Port = 5672; }
public ExchangeConfiguration(GeneralExchangeConfiguration exchange) : this() { Durable = exchange.Durable; AutoDelete = exchange.AutoDelete; ExchangeType = exchange.Type.ToString().ToLower(); }