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"); }
public override bool CanHandle(MyHttpRequest req) { localPath = req.GetLocalPath(PhysicalPath); if (localPath == null) { return(false); } var ext = Path.GetExtension(localPath); return(ext.ToLower() == ".php"); }