public void TryConnect()
        {
            try
            {
                StaticChannelFactory.Dispose();

                var connectionFactory = new ConnectionFactory()
                {
                    RequestedHeartbeat      = 30,
                    NetworkRecoveryInterval = TimeSpan.FromSeconds(5),
                    TopologyRecoveryEnabled = true,
                    Uri = new Uri(this.QueueSettings.QueueConnectionString),
                    DispatchConsumersAsync = true
                };

                this.Channel = StaticChannelFactory.Create(connectionFactory);
                this.Configure();
            }
            catch (Exception e)
            {
                throw e;
            }
        }
 public void Dispose()
 {
     StaticChannelFactory.Dispose();
 }