Exemplo n.º 1
0
 public void Setup()
 {
     node            = new NodeHttp2Runner();
     node.LogHandler = (msg) => {
         Console.WriteLine(msg);
     };
     node.StartServer();
     // Wait for the server to initialize
     System.Threading.Thread.Sleep(2000);
 }
Exemplo n.º 2
0
 public void Setup ()
 {
     node = new NodeHttp2Runner ();
     node.LogHandler = (msg) => {
         Console.WriteLine (msg);
     };
     node.StartServer ();
     // Wait for the server to initialize
     System.Threading.Thread.Sleep (2000);
 }
Exemplo n.º 3
0
        public void Setup ()
        {
            // Setup logger 
            Log.Logger = new ConsoleLogger { Level = LogLevel.Info };

            if (UseInternalHttpRunner) {
                node = new NodeHttp2Runner ();
                node.LogHandler = Console.WriteLine;
            
                node.StartServer ();
                // Wait for the server to initialize
                Thread.Sleep (2000);
            }
        }
Exemplo n.º 4
0
        public void Setup()
        {
            // Setup logger
            Log.Logger = new ConsoleLogger {
                Level = LogLevel.Info
            };

            if (UseInternalHttpRunner)
            {
                node            = new NodeHttp2Runner();
                node.LogHandler = Console.WriteLine;

                node.StartServer();
                // Wait for the server to initialize
                Thread.Sleep(2000);
            }
        }