protected override IJob Build()
        {
            var job = new SimpleJob(Logger, "HttpCheck");

            job.RaiseJobExceptionEvent += Job_RaiseJobExceptionEvent;

            var policy = Policy.Handle <HttpRequestException>().WaitAndRetryAsync(new[]
            {
                TimeSpan.FromSeconds(1),
                TimeSpan.FromSeconds(2),
                TimeSpan.FromSeconds(3)
            });

            job.Use((_) =>
            {
                var httpCheck = new HttpHealthCheck(new HttpHealthCheckParams("http://google.com", (m, r) => Console.WriteLine(m)));
                return(httpCheck.Beat());
            }, policy);

            return(job);
        }