public override void OnCheckError(CheckResult result, Exception exception) { Trace.WriteLine(string.Format("{0} failed: {1}|{2}|{3}|{4}|{5}", result.Name, result.Duration, result.Message, result.MetaData, result.StackTrace, exception), "EmbeddedChecks"); }
public void PublishResultButCatchExceptions(CheckResult result) { try { PublishCheckResult(result); } catch (Exception ex) { OnCheckError(result, ex); } }
public virtual void OnCheckError(CheckResult result, Exception exception) { }
public virtual void PublishCheckResult(CheckResult result) { }
public override void PublishCheckResult(CheckResult result) { Trace.WriteLine(_map[result.Status], "EmbeddedChecks"); }