MassTransit RabbitMQ 参考文档

Autofac http://docs.autofac.org/en/latest/lifetime/startup.html

 RabbitMQ

http://www.rabbitmq.com/dotnet-api-guide.htmlhttp://previous.rabbitmq.com/v3_4_x/getstarted.html

 

http://hwcrazy.com/b5fce358672411e3baa0000d601c5586/group/free_open_source_project/

MassTransit

ServiceBusFactory.New(sbc =>
{
  sbc.UseRabbitMq(r =>
                  {
                      r.ConfigureHost(new Uri("rabbitmq://hostname/vhost/queue"), h =>
                      {
                          h.SetUsername("username");
                          h.SetPassword("password");
                      });
                  });

  // other options
});

http://blog.csdn.net/lee_leefox/article/details/8533247

 

 MassTransit入门 http://www.cnblogs.com/wuya/p/Masstransit-guide.html

然后sbc.ReceiveFrom("msmq://localhost/test_queue")告诉bus我们收件箱地址(这个地址永远使用本机外网ip,不带“private$”),bus收到消息后会自动分发给所有订阅了这个消息的消费者(consumers )。

 

topshelf

http://docs.topshelf-project.com/en/latest/configuration/config_api.html

 

posted @ 2015-07-25 21:38  awp110  阅读(1568)  评论(0编辑  收藏  举报