private static GetCatchAllHandlerIfAny ( string httpMethod, string pathInfo, string filePath ) : IHttpHandler | ||
httpMethod | string | |
pathInfo | string | |
filePath | string | |
return | 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;
}