Skip to content

Instantly share code, notes, and snippets.

@phatboyg
Created February 27, 2010 23:42
Show Gist options
  • Save phatboyg/317061 to your computer and use it in GitHub Desktop.
Save phatboyg/317061 to your computer and use it in GitHub Desktop.
ObjectFactory.Configure(x =>
{
x.AddRegistry(new ServerRegistry());
});
public class ServerRegistry : MassTransitRegistryBase {
public ServerRegistry()
{
RegisterControlBus("msmq://localhost/test_server_control", x => { });
RegisterServiceBus("msmq://localhost/test_server", x =>
{
x.SetConcurrentConsumerLimit(1);
x.UseControlBus(ObjectFactory.GetInstance<IControlBus>());
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment