public DocumentLock(Document doc)
 {
     this.doc = doc;
     new ServerRequest(
         doc.host,
         doc.port,
         "/dynamic/documents/service/lock?id=" + doc.document_id + "&format=raw",
         doc.session_name,
         doc.session_id,
         doc.pn_version,
         "locking file " + doc.filename,
         request_progress,
         request_succeed,
         request_failed
     );
     while (error == null && !locked) Thread.Sleep(50);
     if (error == null)
         updater = new DocumentLockUpdater(doc);
 }
Пример #2
0
 public DocumentLock(Document doc)
 {
     this.doc = doc;
     new ServerRequest(
         doc.host,
         doc.port,
         "/dynamic/documents/service/lock?id=" + doc.document_id + "&format=raw",
         doc.session_name,
         doc.session_id,
         doc.pn_version,
         "locking file " + doc.filename,
         request_progress,
         request_succeed,
         request_failed
         );
     while (error == null && !locked)
     {
         Thread.Sleep(50);
     }
     if (error == null)
     {
         updater = new DocumentLockUpdater(doc);
     }
 }