public void Initialize(QueueDefinition queue, ExchangeDefinition exchange, string routingKey, string connectionName = null)
 {
     _exchange       = exchange;
     _queue          = queue;
     _routingKey     = routingKey;
     _connectionName = connectionName;
 }
 public void Initialize(QueueDefinition queue, string connectionName)
 {
     _timer = new AbpTimer {
         Period = (int)Period.TotalMilliseconds, RunOnStart = true
     };
     Queue           = queue;
     _connectionName = connectionName;
     _timer.Elapsed += Timer_Elapsed;
     _timer.Start();
 }