Exemple #1
0
        private void UpdateL1Cache(string wsDocId, string path)
        {
            Logger.LogTrace(string.Format("Path added to L1 cache. Path={0}. WsDocId={1}", path, wsDocId));

            if (m_docProviderCache.ContainsKey(wsDocId.ToLower()))
            {
                m_docProviderCache[wsDocId].wsPath = path;
            }
            else
            {
                m_docProviderCache[wsDocId] = new CacheEntity()
                {
                    wsPath = path
                };
            }
        }
Exemple #2
0
 private void UpdateL1Cache(string szDocumentID, WdDocument wdDoc, tagWSDOCUMENT wsDoc)
 {
     Logger.LogTrace(string.Format("WsDoc added to L1 cache. WsDocId={0}. wsDesc={1}. WdDocId={2}. WdDocLocalPath={3}", szDocumentID,wsDoc.bstrDescription,wdDoc.DocId,wdDoc.LocalFilePath));
     m_docProviderCache[szDocumentID] = new CacheEntity()
     {
         wsDoc = wsDoc,
         wsPath = wdDoc.LocalFilePath
     };
 }