public void Reset(int size, CmsApi api, WcoApi wco) { Debug.WriteLine("Cache reset with {0} items", size); _api = api; _wco = wco; _cacheSize = size; _queue = new List <int>(size); _assetsById = new Dictionary <int, WorklistAsset>(); _assetsByPath = new Dictionary <string, int>(); _pathsById = new Dictionary <int, string>(); _folderProperties = new Dictionary <int, FolderOptions>(); _workflowQueue = new List <int>(size); _workflowsById = new Dictionary <int, WorkflowData>(); _workflowsByName = new Dictionary <string, int>(); _workflowFilters = new Dictionary <int, WorkflowFilter>(); _publishingProperties = new Dictionary <int, List <PublishingProperties> >(); _publishingPackages = new Dictionary <int, string>(); _states = new Dictionary <int, string>(); _snippetsById = new Dictionary <string, WcoApiHelper.Snippet>(); _variantsById = new Dictionary <string, Wco.Variant>(); _variantsByNewId = new Dictionary <string, string>(); _formsById = new Dictionary <string, WcoApiHelper.Form>(); _fieldsById = new Dictionary <string, WcoApiHelper.Field>(); _targetGroupsById = new Dictionary <string, WcoApiHelper.TargetGroup>(); _connectorsById = new Dictionary <string, WcoApiHelper.Connector>(); }
public CmsAssetCache(int size, CmsApi api, WcoApi wco) { Debug.WriteLine("Cache create with {0} items", size); Reset(size, api, wco); }