예제 #1
0
        public IViewComponentInvoker CreateInstance([NotNull] TypeInfo componentType, object[] args)
        {
            var context = new ViewComponentInvokerProviderContext(componentType, args);

            _providerManager.Invoke(context);
            return(context.Result);
        }
예제 #2
0
 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;
 }