Example #1
0
        public CanaryResponse Canary()
        {
            var canaryResponse = CanaryTester.RunAllTests(new Task <ICanary>[]
            {
                new Task <ICanary>(() =>
                {
                    try
                    {
                        var pingResponse = _serviceDepthOneClient.Ping();

                        return(new LiveCanary
                        {
                            Message = "ServiceDepthOne connectivity passed",
                            Content = pingResponse.ToString()
                        });
                    }
                    catch (Exception ex)
                    {
                        return(new DeadCanary
                        {
                            Message = "ServiceDepthOne connectivity failed",
                            ExceptionDetails = ex.ToString()
                        });
                    }
                }),
            });

            return(canaryResponse);
        }
Example #2
0
        public CanaryResponse Canary()
        {
            var canaryResponse = CanaryTester.RunAllTests(new Task <ICanary>[]
            {
            });

            return(canaryResponse);
        }