Esempio n. 1
0
 object GetWorkspaceLock(Guid workspaceID)
 {
     lock (_loadLock)
     {
         return(WorkspaceLocks.GetOrAdd(workspaceID, guid => new object()));
     }
 }
Esempio n. 2
0
 public void Dispose()
 {
     lock (_loadLock)
     {
         WorkspaceLocks.Clear();
     }
     lock (_loadLock)
     {
         WorkspaceResources.Clear();
     }
     _parsers = new ConcurrentDictionary <Guid, IResourceActivityCache>();
 }