public HttpActionDescriptor SelectAction(HttpControllerContext controllerContext) { var request = controllerContext.Request; if (request.IsInspectRequest()) { var simulate = new ActionSelectSimulator(); request.Properties[RequestHelper.ActionCache] = simulate.Simulate(controllerContext); } var selectedAction = _delegating.SelectAction(controllerContext); return selectedAction; }
public HttpActionDescriptor SelectAction(HttpControllerContext controllerContext) { var request = controllerContext.Request; if (request.IsInspectRequest()) { var simulate = new ActionSelectSimulator(); request.Properties[RequestHelper.ActionCache] = simulate.Simulate(controllerContext); } var selectedAction = _innerSelector.SelectAction(controllerContext); return(selectedAction); }