Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var monitors = new List <EndpointMonitor>();

            foreach (var endpoint in endpointRepo.GetAll())
            {
                var monitor = new EndpointMonitor(endpoint.Url, endpoint.CheckInterval);
                monitor.EndpointChecked += Monitor_EndpointChecked;
                monitor.Start();
                monitors.Add(monitor);
            }

            Console.WriteLine("Press the Enter key to exit.");
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main( string[] args )
        {
            var monitors = new List<EndpointMonitor>();

            foreach ( var endpoint in endpointRepo.GetAll() )
            {
                var monitor = new EndpointMonitor( endpoint.Url, endpoint.CheckInterval );
                monitor.EndpointChecked += Monitor_EndpointChecked;
                monitor.Start();
                monitors.Add( monitor );
            }

            Console.WriteLine( "Press the Enter key to exit." );
            Console.ReadLine();
        }