title: RabbitMQ Consumer always directly shutsdown (C#)
body: <p>At The moment im learning how to work with the RabbitMQ.
  Sending works. But Recieving doesn't  work. This is my code:</p>
  
  <pre><code>    var factory = new ConnectionFactory() { HostName = hostName };
          using (var connection = factory.CreateConnection())
          using (var channel = connection.CreateModel())
          {
              channel.QueueDeclare(queue: queueName,
                               durable: false,
                               exclusive: false,
                               autoDelete: false,
                               arguments: null);
              var consumer = new EventingBasicConsumer(channel);
              consumer.Received += (model, ea) =&gt;
              {
                  var body = ea.Body;
                  var message = Encoding.UTF8.GetString(body);
                  Console.WriteLine("Recieved: {0}", message);
              };
              consumer.Shutdown += (o, e) =&gt;
              {
                  Console.WriteLine("Error with RabbitMQ: {0}", e.Cause);
                  createConnection(hostName, queueName);
              };
              channel.BasicConsume(queueName, true, consumer);
          }
  </code></pre>
  
  <p>This is copied from the Tutorial. If I start the Application, consumer.Shutdown is directly called and I get: </p>
  
  <pre><code>    {AMQP close-reason, initiated by Application, code=200, text="Goodbye", classId=0, methodId=0, cause=}
  </code></pre>
  
  <p>Can anyone help me?</p>