ServiceStack.HttpHandlerFactory.GetCatchAllHandlerIfAny C# (CSharp) Метод

GetCatchAllHandlerIfAny() приватный статический Метод

private static GetCatchAllHandlerIfAny ( string httpMethod, string pathInfo, string filePath ) : IHttpHandler
httpMethod string
pathInfo string
filePath string
Результат IHttpHandler
        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;
        }