CR feedback
This commit is contained in:
parent
803f447686
commit
5c07c6a07b
|
|
@ -7,9 +7,9 @@ namespace Microsoft.AspNet.Mvc
|
|||
{
|
||||
public ActionDescriptorProviderContext()
|
||||
{
|
||||
ActionDescriptors = new List<ActionDescriptor>();
|
||||
Results = new List<ActionDescriptor>();
|
||||
}
|
||||
|
||||
public List<ActionDescriptor> ActionDescriptors { get; private set; }
|
||||
public List<ActionDescriptor> Results { get; private set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
{
|
||||
var context = new ActionInvokerProviderContext(actionContext);
|
||||
_actionInvokerProvider.Invoke(context);
|
||||
return context.ActionInvoker;
|
||||
return context.Result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
|
||||
if (ad != null)
|
||||
{
|
||||
context.ActionInvoker = new TypeMethodBasedActionInvoker(
|
||||
context.Result = new TypeMethodBasedActionInvoker(
|
||||
context.ActionContext,
|
||||
ad,
|
||||
_actionResultFactory,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ namespace Microsoft.AspNet.Mvc
|
|||
|
||||
public ActionContext ActionContext { get; private set; }
|
||||
|
||||
public IActionInvoker ActionInvoker { get; set; }
|
||||
public IActionInvoker Result { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc
|
|||
|
||||
public void Invoke(ActionDescriptorProviderContext context, Action callNext)
|
||||
{
|
||||
context.ActionDescriptors.AddRange(GetDescriptors());
|
||||
context.Results.AddRange(GetDescriptors());
|
||||
callNext();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue