private ActionItem <T> CreateActionItem(ActionInfo actionInfo)
        {
            var actionContext   = new DefaultActionContext(actionInfo, _exportProvider);
            var serviceProvider = new DefaultActionServiceProvider(actionContext, _serviceProvider);

            return(new ActionItem <T>(
                       actionInfo,
                       actionContext,
                       _exportProvider,
                       serviceProvider));
        }
Beispiel #2
0
        private ActionItem <T> CreateActionItem(ActionInfo actionInfo)
        {
            var context         = new DefaultActionContext(_exportProvider, actionInfo);
            var serviceProvider = new DefaultActionServiceProvider(context, _exportProvider, _serviceProvider);

            return(new ActionItem <T>(
                       (IAction <T>)ActivatorUtilities.CreateInstance(serviceProvider, actionInfo.ActionType),
                       context,
                       _exportProvider,
                       serviceProvider));
        }