Swapping out MSMQ for RabbitMQ in NServiceBus

前端 未结 4 1075
醉酒成梦
醉酒成梦 2021-02-08 15:51

Udi mentions here that \"people have swapped out the MSMQ layer of NServiceBus and plugged in RabbitMQ in its place\".

I\'m looking to do the same thing with the end goa

4条回答
  •  逝去的感伤
    2021-02-08 16:33

    MassTransit runs RabbitMQ as a supported transport:

    ServiceBusFactory.New(sbc =>
    {
        sbc.UseRabbitMq();
        sbc.ReceiveFrom("rabbitmq://localhost/app1")
    });
    

    Just do install-package masstransit.rabbitmq and make sure to change your console application framework to '.Net 4.0' instead of '.Net 4.0 Client Profile'.

提交回复
热议问题