Fixed how initialize is called.
This commit is contained in:
parent
a59d30011d
commit
8415b190b1
|
|
@ -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)
|
if (method == null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue