Example #1
0
        private static void RunServer(Options options)
        {
            using (var server = new StatServer())
            {
                server.Start(options.Prefix);

                Console.ReadKey(true);
            }
        }
        private static void RunServer(Options options)
        {
            using (var server = new StatServer()) {
                logger.Info(string.Format("Starting Server on {0}", options.Prefix));
                server.Start(options.Prefix);

                Console.ReadKey(true);
            }
        }
        private static void RunServer(Options options)
        {
            var processor = new QueryProcessor();

            using (var server = new StatServer(processor))
            {
                server.Start(options.Prefix);

                Console.ReadKey(true);
            }
        }
Example #4
0
        private static void RunServer(Options options)
        {
            var routeFactory = new StatServerRouteProvider();

            using (var server = new StatServer(routeFactory))
            {
                server.Start(options.Prefix);

                Console.ReadKey(true);
            }
        }
Example #5
0
        private static void RunServer(Options options)
        {
            using (var server = new StatServer())
            {
                server.Start(options.Prefix);

                Console.WriteLine("Server started. Press q to terminate.");

                ConsoleKeyInfo k;
                do
                {
                    k = Console.ReadKey(true);
                } while (k.Key != ConsoleKey.Q);
            }
        }
Example #6
0
 public void SetUp()
 {
     server = new StatServer();
     server.Start("http://+:8080/");
 }