Exemplo n.º 1
0
        // TODO: re-add after httpserver.cs is converted to IJS 0.2
        // private static http httpObj = new http( ctx.Environment );

        public static void Main()
        {
            // eval js file given as first commandline arg and
            // run the event loop - runEventLoop() always blocks, unlike node.js
            // which returns if no more callbacks are registered
            instance = new Server();
            instance.evalCommandlineArgument();
            instance.runEventLoop();
        }
Exemplo n.º 2
0
		static void Main( string[] args ) {
			Server instance = new Server();
			instance.evalCommandlineArgument();
			instance.runEventLoop();			
		}