Created
July 20, 2013 13:45
-
-
Save TravisTheTechie/6045068 to your computer and use it in GitHub Desktop.
UseSubscriptionService() new usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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