forked from Particular/NServiceBus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rolled out installation across code base so that creation of queues w…
…ill be done at install time only.
- Loading branch information
Showing
21 changed files
with
243 additions
and
99 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/distributor/MsmqWorkerAvailabilityManager/Installer.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Security.Principal; | ||
using NServiceBus.Installation; | ||
using NServiceBus.Utils; | ||
|
||
namespace MsmqWorkerAvailabilityManager | ||
{ | ||
class Installer : INeedToInstallSomething<NServiceBus.Installation.Environments.Windows> | ||
{ | ||
public void Install(WindowsIdentity identity) | ||
{ | ||
var m = NServiceBus.Configure.Instance.Builder.Build<MsmqWorkerAvailabilityManager>(); | ||
|
||
MsmqUtilities.CreateQueueIfNecessary(m.StorageQueue, identity.Name); | ||
} | ||
} | ||
} |
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
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
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
18 changes: 18 additions & 0 deletions
18
src/impl/faults/NServiceBus.Faults.Forwarder.Config/Installer.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Security.Principal; | ||
using System.Text; | ||
using NServiceBus.Installation; | ||
using NServiceBus.Utils; | ||
|
||
namespace NServiceBus.Faults.Forwarder.Config | ||
{ | ||
class Installer : INeedToInstallSomething<Installation.Environments.Windows> | ||
{ | ||
public void Install(WindowsIdentity identity) | ||
{ | ||
MsmqUtilities.CreateQueueIfNecessary(ConfigureFaultsForwarder.ErrorQueue, identity.Name); | ||
} | ||
} | ||
} |
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
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
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
21 changes: 21 additions & 0 deletions
21
...Bus.Unicast.Subscriptions.Msmq/NServiceBus.Unicast.Subscriptions.Msmq.Config/Installer.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Security.Principal; | ||
using NServiceBus.Installation; | ||
using NServiceBus.Utils; | ||
|
||
namespace NServiceBus.Unicast.Subscriptions.Msmq.Config | ||
{ | ||
/// <summary> | ||
/// Class responssible for installing the MSMQ subscription storage. | ||
/// </summary> | ||
public class Installer : INeedToInstallSomething<Installation.Environments.Windows> | ||
{ | ||
/// <summary> | ||
/// Installs the queue. | ||
/// </summary> | ||
/// <param name="identity"></param> | ||
public void Install(WindowsIdentity identity) | ||
{ | ||
MsmqUtilities.CreateQueueIfNecessary(ConfigureMsmqSubscriptionStorage.Queue, identity.Name); | ||
} | ||
} | ||
} |
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
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
23 changes: 23 additions & 0 deletions
23
src/impl/unicast/queuing/NServiceBus.Unicast.Queuing.Msmq.Config/Installer.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Security.Principal; | ||
using System.Text; | ||
using NServiceBus.Installation; | ||
using NServiceBus.Utils; | ||
|
||
namespace NServiceBus.Unicast.Queuing.Msmq.Config | ||
{ | ||
class Installer : INeedToInstallSomething<Installation.Environments.Windows> | ||
{ | ||
public void Install(WindowsIdentity identity) | ||
{ | ||
if (!ConfigureMsmqMessageQueue.Selected) | ||
return; | ||
|
||
var bus = NServiceBus.Configure.Instance.Builder.Build<UnicastBus>(); | ||
|
||
MsmqUtilities.CreateQueueIfNecessary(bus.Address, identity.Name); | ||
} | ||
} | ||
} |
Oops, something went wrong.