private static IHttpAction GetIHttpHandlerAction(IHttpActionFactory factory, PortalContext portalContext, NodeHead contextNode, NodeHead handlerNode) { var nodeType = handlerNode.GetNodeType(); Type appType = TypeHandler.GetType(nodeType.ClassName); if (typeof(IHttpHandler).IsAssignableFrom(appType)) { return(factory.CreateRemapAction(portalContext, contextNode, null, handlerNode)); } return(null); }
private static IHttpAction GetIHttpHandlerAction(IHttpActionFactory factory, PortalContext portalContext, NodeHead contextNode, NodeHead handlerNode) { var nodeType = handlerNode.GetNodeType(); Type appType = TypeHandler.GetType(nodeType.ClassName); if (typeof(IHttpHandler).IsAssignableFrom(appType)) return factory.CreateRemapAction(portalContext, contextNode, null, handlerNode); return null; }
private static IHttpAction GetIHttpHandlerAction(IHttpActionFactory factory, PortalContext portalContext, NodeHead contextNode, Type httpHandlerType) { return(factory.CreateRemapAction(portalContext, contextNode, null, httpHandlerType)); }
private static IHttpAction GetIHttpHandlerAction(IHttpActionFactory factory, PortalContext portalContext, NodeHead contextNode, Type httpHandlerType) { return factory.CreateRemapAction(portalContext, contextNode, null, httpHandlerType); }