Skip to content

Instantly share code, notes, and snippets.

@stefansedich
Created September 12, 2011 13:20
Show Gist options
  • Select an option

  • Save stefansedich/1211228 to your computer and use it in GitHub Desktop.

Select an option

Save stefansedich/1211228 to your computer and use it in GitHub Desktop.
builder.RegisterType<TestMessageHandler>();
builder.Register(c =>
ServiceBusFactory.New(sbc =>
{
var ctx = c.Resolve<IComponentContext>();
sbc.UseMsmq();
sbc.UseMulticastSubscriptionClient();
sbc.VerifyMsmqConfiguration();
sbc.ReceiveFrom("msmq://localhost/appkube-service");
sbc.UseControlBus();
sbc.Subscribe(sbsc => sbsc.LoadFrom(ctx));
})).SingleInstance();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment