Didn't found a single thing about how to use RabbitMQ in VB
It is possible to make changes to some extend, to make it look like C#
Dim factory = New ConnectionFactory() : With factory
.HostName = "localhost"
End With
Using connection = factory.CreateConnection()
Using channel = connection.CreateModel()
...
...
End Using
End Using
And I already have checked that there are no problems with sending messages or declaring queues, but what about usage of consumer?
In C# Consumer looks like:
var consumer = new EventingBasicConsumer(channel);
consumer.Received += (model, ea) =>
{
var body = ea.Body;
...
...
channel.BasicAck(ea.DeliveryTag, false, false);
};
But how this supposed to look in VB? Already tried this kind of stuff:
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
Consumer is created without a problem, but there are no reaction on event
Is there some kind of work around, manual how to use RabbitMQ with VB or maybe I am simply missing something?
converter.Received. I simply don't believe that no one tried to use RabbitMQ on VB before :( There must be something