Невозможно создать ActionContext, если ActionDescriptor является ControllerActionDescriptorВерсия 1 (работает):
Код: Выделить всё
var actionContext1 = new ActionContext(new DefaultHttpContext(), new RouteData(), new ActionDescriptor());
// actionContext1.ActionDescriptor is NOT null
Код: Выделить всё
var actionContext2 = new ActionContext(new DefaultHttpContext(), new RouteData(), new ControllerActionDescriptor());
// actionContext1.ActionDescriptor is null
Есть идеи?
Подробнее здесь: https://stackoverflow.com/questions/781 ... rolleracti
Мобильная версия