builder.Register(c => Bus.Factory.CreateUsingRabbitMq(sbc => { var host = sbc.Host(new Uri("rabbitmq://localhost/myvhost"), h => { h.Username("myvhost"); h.Password("password"); }); sbc.ReceiveEndpoint(host, "my_queue", e => e.Consumer<MyConsumer>());
})) .As<IBus>() .SingleInstance();
public class Startup { public void Configuration(IAppBuilder app) {
// Calling autofac modules to wire it up
// When done calling autofac modules, should I be calling the .start() here, and save the handle?
// Do I care to save the handle, or let IDisposable do the work once the Application Pool is recycled?
}
}
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/97afcfc1-0821-4039-b5ce-2bddc7f4a79e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.