Skip to content

Instantly share code, notes, and snippets.

@kijanawoodard
Created November 27, 2012 17:01
Show Gist options
  • Select an option

  • Save kijanawoodard/4155505 to your computer and use it in GitHub Desktop.

Select an option

Save kijanawoodard/4155505 to your computer and use it in GitHub Desktop.
NServiceBus Endpoint for Distributor
class ConfiguringTheDistributorWithTheFluentApi : IConfigureThisEndpoint, AsA_Publisher
{
public void Init()
{
Configure.With()
.DefineEndpointName(ConfigurationManager.AppSettings["NServiceBus.Instance"])
.RunDistributorWithNoWorkerOnItsEndpoint();
}
}
@andreasohlund
Copy link
Copy Markdown

You need to add IWantCustomInitialization as well in order for the Init() to be called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment