static void Main() { CobaltServer svr = new CobaltServer(@"c:\\A",9111); svr.Start(); Console.WriteLine("A simple wopi webserver. Press any key to quit."); Console.ReadKey(); svr.Stop(); }
static void Main() { CobaltServer svr = new CobaltServer(@"D:\\wopi-docs"); svr.Start(); Console.WriteLine("A simple wopi webserver. Press any key to quit."); Console.ReadKey(); svr.Stop(); }
static void Main() { CobaltServer svr = new CobaltServer(@"F:\\files\\wpoi\\221\\111"); svr.Start(); Console.WriteLine("A simple wopi webserver. Press any key to quit."); Console.ReadKey(); svr.Stop(); }
static void Main() { // docsPath parameter may change to the real local path that save demo documents(word or excel file) CobaltServer svr = new CobaltServer(@"D:\\wopi-docs"); svr.Start(); Console.WriteLine("A simple wopi webserver. Press any key to quit."); Console.ReadKey(); svr.Stop(); }
static void Main() { // docsPath parameter may change to the real local path that save demo documents(word or excel file) string ip_port = ConfigurationManager.AppSettings.Get("ip_port"); string file_path = ConfigurationManager.AppSettings.Get("file_path"); CobaltServer svr = new CobaltServer(file_path, ip_port); svr.Start(); Console.WriteLine("A simple wopi webserver. Press any key to quit."); Console.ReadKey(); svr.Stop(); }