Esempio n. 1
0
        static void Main(string[] args)
        {
            WopiHost host = new WopiHost(@"C:\\wopi-docs");

            host.Start();
            Console.WriteLine("A simple wopi webserver. Press any key to quit.");
            Console.ReadKey();
            host.Stop();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            WopiUserRequest request = new WopiUserRequest()
            {
                userId     = "user@policyhub",
                resourceId = "file1.txt",
                Action     = ActionType.VIEW,
                docsPath   = @"C:\\wopi-docs"
            };
            WopiHost host = new WopiHost(request);

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