Example #1
0
 public IWorkspace Get(Guid workspaceID, bool force, bool loadResources)
 {
     lock (_readLock)
     {
         // PBI 9363 - 2013.05.29 - TWR: Added loadResources parameter
         if (force || !_items.TryGetValue(workspaceID, out IWorkspace workspace))
         {
             workspace = Read(workspaceID);
             if (loadResources)
             {
                 _resourceCatalog.LoadWorkspace(workspaceID);
             }
             _items[workspaceID] = workspace;
         }
         return(workspace);
     }
 }