Exemplo n.º 1
0
        static void Main(string[] args)
        {
            SaneServer ws = new SaneServer(
                (Utility.fetchFromResource(true, Assembly.GetExecutingAssembly(), "CTF.Resources.ViewStructure.xml")),
                "Database\\SaneDB.db", true,
                "http://+:80/");

            ws.addController(typeof(Controller.ControllerMain));
            ws.addWebSocketService <CTFWebSocketService>(8080, "/CTF");
            ws.run();
            Console.WriteLine("Running!");
            Console.ReadKey();
        }