public override string Evaluate(WatsonReport watsonReport) { string text = base.Expression + "=" + Environment.GetEnvironmentVariable(base.Expression); watsonReport.LogExtraData(text); return(text); }
public override string Evaluate(WatsonReport watsonReport) { string text = string.Concat(new string[] { "--- ", base.Expression, " ---\r\n", WatsonWmiQueryReportAction.EvaluateWmiQuery(base.Expression), "--- END ---" }); watsonReport.LogExtraData(text); return(text); }
public override string Evaluate(WatsonReport watsonReport) { string registryValue = WatsonRegKeyReportAction.GetRegistryValue(base.Expression); string text; if (registryValue == null) { text = base.Expression + " not found."; } else { text = base.Expression + "=" + registryValue; } watsonReport.LogExtraData(text); return(text); }
public override string Evaluate(WatsonReport watsonReport) { watsonReport.LogExtraData(base.Expression); return(base.Expression); }