Fixed how initialize is called.

This commit is contained in:
David Fowler 2014-01-26 00:54:14 -08:00
parent a59d30011d
commit 8415b190b1
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ namespace Microsoft.AspNet.Mvc
}
}
var method = controllerType.GetTypeInfo().GetDeclaredMethod("Initialize");
var method = controllerType.GetRuntimeMethods().FirstOrDefault(m => m.Name.Equals("Initialize", StringComparison.OrdinalIgnoreCase));
if (method == null)
{