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());
        }
Пример #2
0
        public static void PrintProbe(this IProbeSite probeSite)
        {
            var probe = probeSite.GetProbeResult();

            Console.WriteLine(JsonConvert.SerializeObject(probe, Formatting.Indented));
        }