Esempio n. 1
0
        protected override void ProcessRecord()
        {
            var msmqIsGood = MsmqSetup.IsInstallationGood();

            WriteVerbose(msmqIsGood
                             ? "MSMQ is installed and setup for use with NServiceBus."
                             : "MSMQ is not installed.");

            WriteObject(msmqIsGood);
        }
Esempio n. 2
0
        protected override void Process()
        {
            bool msmqIsGood;

            if (!ShouldProcess(Environment.MachineName))
            {
                msmqIsGood = MsmqSetup.IsInstallationGood();
                Host.UI.WriteLine(msmqIsGood
                                          ? "Msmq is installed and setup for use with NServiceBus"
                                          : "Msmq is not installed");

                WriteObject(msmqIsGood);
                return;
            }

            msmqIsGood = MsmqSetup.StartMsmqIfNecessary(Force);

            if (!msmqIsGood && !Force)
            {
                WriteWarning("Msmq needs to reinstalled, Please rerun the command with -Force set. NOTE: This will remove all local queues!");
            }

            WriteObject(msmqIsGood);
        }