CR feedback

This commit is contained in:
Ryan Nowak 2014-02-28 12:53:03 -08:00
parent 803f447686
commit 5c07c6a07b
5 changed files with 6 additions and 6 deletions

View File

@ -7,9 +7,9 @@ namespace Microsoft.AspNet.Mvc
{ {
public ActionDescriptorProviderContext() public ActionDescriptorProviderContext()
{ {
ActionDescriptors = new List<ActionDescriptor>(); Results = new List<ActionDescriptor>();
} }
public List<ActionDescriptor> ActionDescriptors { get; private set; } public List<ActionDescriptor> Results { get; private set; }
} }
} }

View File

@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc
{ {
var context = new ActionInvokerProviderContext(actionContext); var context = new ActionInvokerProviderContext(actionContext);
_actionInvokerProvider.Invoke(context); _actionInvokerProvider.Invoke(context);
return context.ActionInvoker; return context.Result;
} }
} }
} }

View File

@ -28,7 +28,7 @@ namespace Microsoft.AspNet.Mvc
if (ad != null) if (ad != null)
{ {
context.ActionInvoker = new TypeMethodBasedActionInvoker( context.Result = new TypeMethodBasedActionInvoker(
context.ActionContext, context.ActionContext,
ad, ad,
_actionResultFactory, _actionResultFactory,

View File

@ -16,6 +16,6 @@ namespace Microsoft.AspNet.Mvc
public ActionContext ActionContext { get; private set; } public ActionContext ActionContext { get; private set; }
public IActionInvoker ActionInvoker { get; set; } public IActionInvoker Result { get; set; }
} }
} }

View File

@ -30,7 +30,7 @@ namespace Microsoft.AspNet.Mvc
public void Invoke(ActionDescriptorProviderContext context, Action callNext) public void Invoke(ActionDescriptorProviderContext context, Action callNext)
{ {
context.ActionDescriptors.AddRange(GetDescriptors()); context.Results.AddRange(GetDescriptors());
callNext(); callNext();
} }