Skip to content

Instantly share code, notes, and snippets.

@ekepes
Created March 6, 2011 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekepes/856866 to your computer and use it in GitHub Desktop.
Save ekepes/856866 to your computer and use it in GitHub Desktop.
public class PlayMassTransitModule : MassTransitModuleBase
{
public override void Load()
{
base.Load();
RegisterEndpointFactory(x =>
{
x.RegisterTransport<LoopbackEndpoint>();
x.RegisterTransport<MulticastUdpEndpoint>();
x.RegisterTransport<MsmqEndpoint>();
});
RegisterServiceBus(@"msmq://localhost/mt_mike_publisher", x =>
{
x.SetConcurrentConsumerLimit(1);
ConfigureSubscriptionClient(@"msmq://localhost/mt_subscriptions", x);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment