Exemple #1
0
        public void SetDocumentGuidForConnection(string documentGuid)
        {
            string connectionGuid = userGUID;

            lock (_connectionsAndUserGuids)
            {
                DocumentReviewer documentReviewer = _connectionsAndUserGuids[connectionGuid];
                documentReviewer.DocumentGuid            = documentGuid;
                _connectionsAndUserGuids[connectionGuid] = documentReviewer;
            }
        }
Exemple #2
0
 public void SetUserGuidForConnection(string connectionGuid, string userGuid)
 {
     lock (_connectionsAndUserGuids)
     {
         if (!(_connectionsAndUserGuids.ContainsKey(connectionGuid) && _connectionsAndUserGuids[connectionGuid].UserGuid == userGuid))
         {
             _connectionsAndUserGuids[connectionGuid] = new DocumentReviewer()
             {
                 UserGuid = userGuid
             };
         }
     }
 }