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}); }
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); }
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 }); }
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); }