Created
April 6, 2011 13:21
-
-
Save mookid8000/905624 to your computer and use it in GitHub Desktop.
NServiceBus endpoint config example publisher
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
public class EndpointConfiguration : IConfigureThisEndpoint, | |
IWantCustomLogging, | |
IWantCustomInitialization | |
{ | |
public void Init() | |
{ | |
Configure.With() | |
.DefaultBuilder() | |
.XmlSerializer() | |
.MsmqTransport() | |
.IsTransactional(true) | |
.MsmqSubscriptionStorage() | |
.UnicastBus() | |
.LoadMessageHandlers() | |
.CreateBus(); | |
} | |
} |
Thanks for pointing that out! I have removed AsA_Publisher
(which was kind of superfluous, as everything was already configured in Configure.With().[...]
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're specifying everything after (and including) .MsmqTransport() you shouldn't be using AsA_Publisher.