示例#1
0
        static void Main(string[] args)
        {
            var host = System.Configuration.ConfigurationManager.AppSettings["ListenerHost"];
            var port = System.Configuration.ConfigurationManager.AppSettings["ListenerPort"];

            CobaltServer svr = new CobaltServer(host, Convert.ToInt32(port));

            svr.Start();

            Console.WriteLine("Subdoc中间件,请勿退出!");
            Console.ReadKey();

            svr.Stop();
        }
示例#2
0
        static void Main(string[] args)
        {
            var host = System.Configuration.ConfigurationManager.AppSettings["ListenerHost"];
            var port = System.Configuration.ConfigurationManager.AppSettings["ListenerPort"];

            CobaltServer svr = new CobaltServer(host, Convert.ToInt32(port));

            svr.Start();

            Console.WriteLine("A simple wopi webserver. Press any key to quit.");
            Console.ReadKey();

            svr.Stop();
        }