Skip to content

Instantly share code, notes, and snippets.

@mookid8000
Created April 6, 2011 13:21
Show Gist options
  • Save mookid8000/905624 to your computer and use it in GitHub Desktop.
Save mookid8000/905624 to your computer and use it in GitHub Desktop.
NServiceBus endpoint config example publisher
public class EndpointConfiguration : IConfigureThisEndpoint,
IWantCustomLogging,
IWantCustomInitialization
{
public void Init()
{
Configure.With()
.DefaultBuilder()
.XmlSerializer()
.MsmqTransport()
.IsTransactional(true)
.MsmqSubscriptionStorage()
.UnicastBus()
.LoadMessageHandlers()
.CreateBus();
}
}
@NServiceBus
Copy link

If you're specifying everything after (and including) .MsmqTransport() you shouldn't be using AsA_Publisher.

@mookid8000
Copy link
Author

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