Example #1
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();
        }
Example #2
0
 public WopiHandler(WopiUserRequest wopiUser)
 {
     _userRequest   = wopiUser;
     _errHandler    = new ErrorHandler();
     _authorization = new Authorization();
 }
Example #3
0
        private const int MaximumRequestCount = 50; //to be read from config file

        //this class will be called from the application
        public WopiHost(WopiUserRequest wopiUser)
        {
            _userRequest = wopiUser;
            //Start();
        }