public IViewComponentInvoker CreateInstance([NotNull] TypeInfo componentType, object[] args) { var context = new ViewComponentInvokerProviderContext(componentType, args); _providerManager.Invoke(context); return(context.Result); }
public void Invoke([NotNull] ViewComponentInvokerProviderContext context, [NotNull] Action callNext) { context.Result = new DefaultViewComponentInvoker( _serviceProvider, _viewComponentActivator, context.ComponentType, context.Arguments); callNext(); }
public IViewComponentInvoker CreateInstance([NotNull] TypeInfo componentType, object[] args) { var context = new ViewComponentInvokerProviderContext(componentType, args); _providerManager.Invoke(context); return context.Result; }