Skip to content

Instantly share code, notes, and snippets.

@TravisTheTechie
Created July 20, 2013 13:45
Show Gist options
  • Save TravisTheTechie/6045068 to your computer and use it in GitHub Desktop.
Save TravisTheTechie/6045068 to your computer and use it in GitHub Desktop.
UseSubscriptionService() new usage
class Program
{
static void Main(string[] args)
{
Bus.Initialize(sbc =>
{
sbc.ReceiveFrom("msmq://localhost/queue");
sbc.UseMsmq();
sbc.UseSubscriptionService("msmq://localhost/mt_subscriptions");
});
Bus.Instance.Publish(new TestMessage());
}
}
// there was a namespace issue, you might need
using MassTransit.Transports.Msmq.Configuration;
class Program
{
static void Main(string[] args)
{
Bus.Initialize(sbc =>
{
sbc.ReceiveFrom("msmq://localhost/queue");
sbc.UseMsmq(mq => {
mq.UseSubscriptionService("msmq://localhost/mt_subscriptions");
});
});
Bus.Instance.Publish(new TestMessage());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment