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(); }
public WopiHandler(WopiUserRequest wopiUser) { _userRequest = wopiUser; _errHandler = new ErrorHandler(); _authorization = new Authorization(); }
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(); }