Skip to content

Commit

Permalink
Now creates the audit queue at install time.
Browse files Browse the repository at this point in the history
  • Loading branch information
udidahan committed Sep 8, 2011
1 parent 6caf290 commit 2eafab0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Security.Principal;
using NServiceBus.Config;
using NServiceBus.Installation;
using NServiceBus.Utils;

Expand All @@ -16,6 +13,11 @@ public void Install(WindowsIdentity identity)
return;

MsmqUtilities.CreateQueueIfNecessary(Address.Local, identity.Name);

var unicastConfig = Configure.GetConfigSection<UnicastBusConfig>();
if (unicastConfig != null)
if (!string.IsNullOrEmpty(unicastConfig.ForwardReceivedMessagesTo))
MsmqUtilities.CreateQueueIfNecessary(unicastConfig.ForwardReceivedMessagesTo, identity.Name);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
<HintPath>..\..\..\..\..\build\nservicebus.core\NServiceBus.Unicast.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NServiceBus.Unicast.Config">
<HintPath>..\..\..\..\..\build\nservicebus.core\NServiceBus.Unicast.Config.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="NServiceBus.Unicast.Queuing, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\build\nservicebus.core\NServiceBus.Unicast.Queuing.dll</HintPath>
Expand Down

0 comments on commit 2eafab0

Please sign in to comment.