Esempio n. 1
0
 public void Start()
 {
     m_listener = new HttpListener();
     _handler   = new WopiHandler(m_docsPath);
     // localhost may change to the real hostname or IP
     m_listener.Prefixes.Add(String.Format("http://*****:*****@"WopiServer Started");
 }
Esempio n. 2
0
 public OperationContext WopiSave(string lockValue, string newContent)
 {
     WopiHandler.ProcessPutFileRequest(LoadTestFile(), lockValue, RepositoryTools.GetStreamFromString(newContent));
     return(this);
 }