Skip to content

Commit

Permalink
Creating mywebclient.distributor.control automatically by the NServic…
Browse files Browse the repository at this point in the history
…eBus

framework.
  • Loading branch information
shlomii committed Nov 3, 2011
1 parent d210cee commit 53f7e32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Samples/AsyncPages/WebApplication1/Global.asax.cs
Expand Up @@ -11,6 +11,7 @@ public class Global : HttpApplication
protected void Application_Start(object sender, EventArgs e)
{
Bus = NServiceBus.Configure.WithWeb()
.AsMasterNode()
.Log4Net()
.DefaultBuilder()
.XmlSerializer()
Expand All @@ -19,8 +20,8 @@ protected void Application_Start(object sender, EventArgs e)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.CreateBus()
.Start();
.CreateBus()
.Start(() => Configure.Instance.ForInstallationOn<NServiceBus.Installation.Environments.Windows>().Install());
}

protected void Application_End(object sender, EventArgs e)
Expand Down

0 comments on commit 53f7e32

Please sign in to comment.