BVNetwork.NotFound.Core.Custom404Handler.IsResourceFile C# (CSharp) Method

IsResourceFile() private static method

Determines whether the specified not found URI is a resource file
private static IsResourceFile ( Uri notFoundUri ) : bool
notFoundUri System.Uri The not found URI.
return bool
        private static bool IsResourceFile(Uri notFoundUri)
        {
            string extension = notFoundUri.AbsolutePath;
            int extPos = extension.LastIndexOf('.');
            if (extPos > 0)
            {
                extension = extension.Substring(extPos + 1);
                if (_ignoredResourceExtensions.Contains(extension))
                {
                    // Ignoring 404 rewrite of known resource extension
                    Logger.Debug("Ignoring rewrite of '{0}'. '{1}' is a known resource extension", notFoundUri.ToString(), extension);
                    return true;
                }
            }
            return false;
        }