Beispiel #1
0
        public void AddStatements(string script, string filePath)
        {
            lock (_cache)
            {
                if (!_cache.ContainsKey(filePath))
                {
                    _cache[filePath] = new QueryCostCacheEntry();
                }

                var cacheEntry = _cache[filePath];

                //string checkSum = GetChecksum(filePath);

                //if (checkSum != cacheEntry.FileChecksum)
                //{
                cacheEntry.Statements = BuildStatements(filePath);
                //   cacheEntry.FileChecksum = checkSum;
                //}
            }
        }
        public void AddStatements(string script, string filePath)
        {
            lock (_cache)
            {
                if (!_cache.ContainsKey(filePath))
                {
                    _cache[filePath] = new QueryCostCacheEntry();
                }

                var cacheEntry = _cache[filePath];

                //string checkSum = GetChecksum(filePath);

                //if (checkSum != cacheEntry.FileChecksum)
                //{
                    cacheEntry.Statements = BuildStatements(filePath);
                 //   cacheEntry.FileChecksum = checkSum;
                //}

            }
        }