private static IHttpHandler GetCatchAllHandlerIfAny(string httpMethod, string pathInfo, string filePath) { foreach (var httpHandlerResolver in HostContext.CatchAllHandlers) { var httpHandler = httpHandlerResolver(httpMethod, pathInfo, filePath); if (httpHandler != null) return httpHandler; } return null; }