protected override void ProcessRecord() { if (this.Item != null) { this.WriteObject(SyncServer.GetRunDetail(this.Item)); } else { this.WriteObject(this.MAInstance.GetRunDetail(this.RunNumber)); } }
protected override void ProcessRecord() { if (this.Item != null) { using (RunDetails syncrundetail = SyncServer.GetRunDetail(this.Item)) { this.WriteObject(syncrundetail); } } else { using (RunDetails marundetail = this.MAInstance.GetRunDetail(this.RunNumber)) { this.WriteObject(marundetail); } } }