title: How to use RabbitMQ in VB.NET?
body: <p>Didn't found a single thing about how to use RabbitMQ in VB</p>
  
  <p>It is possible to make changes to some extend, to make it look like C#</p>
  
  <pre><code>Dim factory = New ConnectionFactory() : With factory
    .HostName = "localhost"
  End With
  
  Using connection = factory.CreateConnection()
    Using channel = connection.CreateModel()
  
    ...
    ...
  
    End Using
  End Using
  </code></pre>
  
  <p>And I already have checked that there are no problems with sending messages or declaring queues, but what about usage of consumer?</p>
  
  <p>In C# Consumer looks like:</p>
  
  <pre><code>var consumer = new EventingBasicConsumer(channel);
  
          consumer.Received += (model, ea) =&gt;
          {
              var body = ea.Body;
  
              ...
              ...
  
              channel.BasicAck(ea.DeliveryTag, false, false);
          };
  </code></pre>
  
  <p>But how this supposed to look in VB?
  Already tried this kind of stuff:</p>
  
  <pre><code>Dim consumer As EventingBasicConsumer = New EventingBasicConsumer(channel)
  AddHandler consumer.Received, AddressOf ConsumerReceived
  
  Private Sub ConsumerReceived(ByVal sender As Object, ByVal e As EventArgs)
    Dim Test = ""
  End Sub
  </code></pre>
  
  <p>Consumer is created without a problem, but there are no reaction on event</p>
  
  <p>Is there some kind of work around, manual how to use RabbitMQ with VB or maybe I am simply missing something?</p>