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