Example #1
0
 protected override void OnStart(string[] args)
 {
     cfg = Config.sharedInstance();
     http = new HTTP();
     http.setPort(int.Parse(cfg.port));
     http.start();
 }
Example #2
0
        static void Main(string[] args)
        {
            cfg = Config.sharedInstance();
            http = new HTTP();
            http.setPort(int.Parse(cfg.port));
            http.start();

            while(true){}
        }