public void SetDocumentGuidForConnection(string documentGuid)
        {
            string connectionGuid = Context.ConnectionId;

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