public static IQueue CreatQueue(IAdvancedBus bus)
 {
     var environment = new Environment();
     var queue = bus.QueueDeclare(environment.GetEnvironmentVariable("QueueName"));
     return queue;
 }
 public static IExchange CreatExchange(IAdvancedBus bus)
 {
     var environment = new Environment();
     var exchange = bus.ExchangeDeclare(environment.GetEnvironmentVariable("ExchangeName"), ExchangeType.Topic);
     return exchange;
 }
 public static IAdvancedBus CreateMessageBus()
 {
     var environment = new Environment();
     var connectionString = environment.GetEnvironmentVariable("RabbitMQConnectionString");
     return RabbitHutch.CreateBus(connectionString).Advanced;
 }