Пример #1
0
 protected override void ProcessRecord()
 {
     if (ShouldProcess(Environment.MachineName))
     {
         DtcSetup.StartDtcIfNecessary();
     }
 }
        protected override void ProcessRecord()
        {
            var dtcIsGood =  new DtcSetup(Host).IsDtcWorking();
            var status = dtcIsGood
                ? "DTC is setup and ready for use with NServiceBus."
                : "DTC is not properly configured.";

            WriteObject( new InstallationResult { Installed = dtcIsGood, Message = status});
        }
Пример #3
0
        protected override void ProcessRecord()
        {
            var dtcIsGood = DtcSetup.IsDtcWorking();

            WriteVerbose(dtcIsGood
                             ? "DTC is setup and ready for use with NServiceBus."
                             : "DTC is not properly configured.");

            WriteObject(dtcIsGood);
        }
Пример #4
0
        protected override void ProcessRecord()
        {
            var dtcIsGood = new DtcSetup(Host).IsDtcWorking();
            var status    = dtcIsGood
                ? "DTC is setup and ready for use with NServiceBus."
                : "DTC is not properly configured.";

            WriteObject(new InstallationResult {
                Installed = dtcIsGood, Message = status
            });
        }
Пример #5
0
        protected override void Process()
        {
            bool dtcIsGood;

            if (!ShouldProcess(Environment.MachineName))
            {
                dtcIsGood = DtcSetup.StartDtcIfNecessary();
                Host.UI.WriteLine(dtcIsGood
                                          ? "DTC is setup and ready for use with NServiceBus"
                                          : "DTC is not properly configured");

                WriteObject(dtcIsGood);
                return;
            }

            dtcIsGood = DtcSetup.StartDtcIfNecessary(true);

            WriteObject(dtcIsGood);
        }