예제 #1
0
        internal override BuildResult GetBuildResult(string cacheKey, VirtualPath virtualPath, long hashCode, bool ensureIsUpToDate)
        {
            string preservedDataFileName  = this.GetPreservedDataFileName(cacheKey);
            PreservationFileReader reader = new PreservationFileReader(this, this.PrecompilationMode);

            return(reader.ReadBuildResultFromFile(virtualPath, preservedDataFileName, hashCode, ensureIsUpToDate));
        }
예제 #2
0
        internal override BuildResult GetBuildResult(string cacheKey, VirtualPath virtualPath, long hashCode, bool ensureIsUpToDate)
        {
            Debug.Trace("BuildResultCache", "Looking for '" + cacheKey + "' in the disk cache");

            string preservationFile = GetPreservedDataFileName(cacheKey);

            PreservationFileReader pfr = new PreservationFileReader(this, PrecompilationMode);

            // Create the BuildResult from the preservation file
            BuildResult result = pfr.ReadBuildResultFromFile(virtualPath, preservationFile, hashCode, ensureIsUpToDate);

            if (result != null)
            {
                Debug.Trace("BuildResultCache", "'" + cacheKey + "' was found in the disk cache");
            }
            else
            {
                Debug.Trace("BuildResultCache", "'" + cacheKey + "' was not found in the disk cache");
            }

            return(result);
        }
    internal override BuildResult GetBuildResult(string cacheKey, VirtualPath virtualPath, long hashCode, bool ensureIsUpToDate) {

        Debug.Trace("BuildResultCache", "Looking for '" + cacheKey + "' in the disk cache");
        
        string preservationFile = GetPreservedDataFileName(cacheKey);

        PreservationFileReader pfr = new PreservationFileReader(this, PrecompilationMode);

        // Create the BuildResult from the preservation file
        BuildResult result = pfr.ReadBuildResultFromFile(virtualPath, preservationFile, hashCode, ensureIsUpToDate);

        if (result != null)
            Debug.Trace("BuildResultCache", "'" + cacheKey + "' was found in the disk cache");
        else
            Debug.Trace("BuildResultCache", "'" + cacheKey + "' was not found in the disk cache");

        return result;
    }
 internal override BuildResult GetBuildResult(string cacheKey, VirtualPath virtualPath, long hashCode, bool ensureIsUpToDate)
 {
     string preservedDataFileName = this.GetPreservedDataFileName(cacheKey);
     PreservationFileReader reader = new PreservationFileReader(this, this.PrecompilationMode);
     return reader.ReadBuildResultFromFile(virtualPath, preservedDataFileName, hashCode, ensureIsUpToDate);
 }