public static ProbeResult GetProbeResult(this IProbeSite probeSite, CancellationToken cancellationToken = default(CancellationToken)) { var builder = new ProbeResultBuilder(Guid.NewGuid(), cancellationToken); probeSite.Probe(builder); return(((IProbeResultBuilder)builder).Build()); }
public static void PrintProbe(this IProbeSite probeSite) { var probe = probeSite.GetProbeResult(); Console.WriteLine(JsonConvert.SerializeObject(probe, Formatting.Indented)); }