Ejemplo n.º 1
0
        public override bool CanHandle(MyHttpRequest req)
        {
            localPath = req.GetLocalPath(PhysicalPath);
            var ext = Path.GetExtension(localPath).ToLower();

            return(ext == ".aspx" ||
                   ext == ".ashx" ||
                   ext == ".asmx" ||
                   ext == ".cshtm" ||
                   ext == ".cshtml");
        }
Ejemplo n.º 2
0
        public override bool CanHandle(MyHttpRequest req)
        {
            localPath = req.GetLocalPath(PhysicalPath);
            if (localPath == null)
            {
                return(false);
            }
            var ext = Path.GetExtension(localPath);

            return(ext.ToLower() == ".php");
        }