protected override void ProcessRecord() { C8Core core = new C8Core(ServerUrl); if (string.IsNullOrEmpty(Application)) { foreach (var item in core.GetApplications(Workspace)) { var apps = from stat in core.GetApplicationStatus(Workspace, item, false).CclApplicationInfo[0].Value where stat.Name == "State" select new { Application = item, State = stat.Value }; WriteObject(apps, true); } return; } if (!core.IsLoadedApplication(Workspace,Application)) { WriteWarning("Application " + Application + " does not exist"); return; } var res = core.GetApplicationStatus(Workspace, Application, false); WriteObject((from stat in res.CclApplicationInfo[0].Value select new { stat.Name, stat.Value }), true); WriteObject((from stat in res.CclCompilerInfo[0].Value select new { stat.Name, stat.Value }), true); }