示例#1
0
 private ActionContextFacade ActionContext(IMenuActionFacade actionFacade, IFrameworkFacade frameworkFacade, string menuPath) =>
 new ActionContextFacade
 {
     MenuPath          = menuPath,
     Target            = frameworkFacade.GetServices().List.Single(s => s.Specification.IsOfType(actionFacade.Action.OnType)),
     Action            = actionFacade.Action,
     VisibleParameters = actionFacade.Action.Parameters.Select(p => new ParameterContextFacade {
         Parameter = p, Action = actionFacade.Action
     }).ToArray()
 };