Beispiel #1
0
        public virtual string GetFileHash(string virtualPath, IEnumerable virtualPathDependencies)
        {
            if (prev != null)
            {
                return(prev.GetFileHash(virtualPath, virtualPathDependencies));
            }

            return(null);
        }
        /*
         * Asks the provider for a hash string based on the state of a set of virtual paths.
         * The primary virtualPath is also passed in by itself.
         * If they match, the cached data held by the user of the provider is still
         * valid.  Otherwise, it should be discarded, and a new version needs to be
         * obtained via GetFile/GetDirectory.
         */

        public virtual string GetFileHash(string virtualPath, IEnumerable virtualPathDependencies)
        {
            // Delegate to the previous VirtualPathProvider, if any

            if (_previous == null)
            {
                return(null);
            }

            return(_previous.GetFileHash(virtualPath, virtualPathDependencies));
        }