public _DefaultViewComponentInvoker( ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator, DiagnosticSource diagnosticSource, ILogger logger) { if (typeActivatorCache == null) { throw new ArgumentNullException(nameof(typeActivatorCache)); } if (viewComponentActivator == null) { throw new ArgumentNullException(nameof(viewComponentActivator)); } if (diagnosticSource == null) { throw new ArgumentNullException(nameof(diagnosticSource)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; _diagnosticSource = diagnosticSource; _logger = logger; }
/// <summary> /// Initializes a new instance of <see cref="DefaultViewComponentInvoker"/>. /// </summary> /// <param name="typeActivatorCache">Caches factories for instantiating view component instances.</param> /// <param name="viewComponentActivator">The <see cref="IViewComponentActivator"/>.</param> /// <param name="diagnosticSource">The <see cref="DiagnosticSource"/>.</param> /// <param name="logger">The <see cref="ILogger"/>.</param> public DefaultViewComponentInvoker( ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator, DiagnosticSource diagnosticSource, ILogger logger) { if (typeActivatorCache == null) { throw new ArgumentNullException(nameof(typeActivatorCache)); } if (viewComponentActivator == null) { throw new ArgumentNullException(nameof(viewComponentActivator)); } if (diagnosticSource == null) { throw new ArgumentNullException(nameof(diagnosticSource)); } if (logger == null) { throw new ArgumentNullException(nameof(logger)); } _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; _diagnosticSource = diagnosticSource; _logger = logger; }
public DefaultViewComponentInvoker( [NotNull] ITypeActivatorCache typeActivatorCache, [NotNull] IViewComponentActivator viewComponentActivator) { _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; }
public DefaultViewComponentInvokerFactory( ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator) { _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; }
public SimpleInjectorViewComponentInvoker(DiagnosticSource source, ILogger logger, IViewComponentActivator viewComponentActivator, Container container) : base(source, logger) { this.viewComponentActivator = viewComponentActivator; this.container = container; }
public DefaultViewComponentInvoker( [NotNull] IServiceProvider serviceProvider, [NotNull] ITypeActivatorCache typeActivatorCache, [NotNull] IViewComponentActivator viewComponentActivator) { _serviceProvider = serviceProvider; _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; }
public DefaultViewComponentInvokerProvider( IServiceProvider serviceProvider, ITypeActivator typeActivator, IViewComponentActivator viewComponentActivator) { _serviceProvider = serviceProvider; _typeActivator = typeActivator; _viewComponentActivator = viewComponentActivator; }
public DefaultViewComponentInvokerFactory( IServiceProvider serviceProvider, ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator) { _serviceProvider = serviceProvider; _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; }
public DefaultViewComponentInvoker( [NotNull] IServiceProvider serviceProvider, [NotNull] IViewComponentActivator viewComponentActivator, [NotNull] TypeInfo componentType, object[] args) { _serviceProvider = serviceProvider; _componentType = componentType; _viewComponentActivator = viewComponentActivator; _args = args ?? new object[0]; }
public ViewComponentInvokerFactory( ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator, DiagnosticSource diagnosticSource, ILoggerFactory loggerFactory) { _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; _diagnosticSource = diagnosticSource; _logger = loggerFactory.CreateLogger<DefaultViewComponentInvoker>(); }
public DefaultViewComponentInvokerFactory( ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator, DiagnosticSource diagnosticSource, ILoggerFactory loggerFactory) { _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; _diagnosticSource = diagnosticSource; _logger = loggerFactory.CreateLogger <DefaultViewComponentInvoker>(); }
/// <summary> /// Creates a new instance of <see cref="DefaultViewComponentFactory"/> /// </summary> /// <param name="activator"> /// The <see cref="IViewComponentActivator"/> used to create new view component instances. /// </param> public DefaultViewComponentFactory(IViewComponentActivator activator) { if (activator == null) { throw new ArgumentNullException(nameof(activator)); } _activator = activator; _getPropertiesToActivate = type => PropertyActivator <ViewComponentContext> .GetPropertiesToActivate( type, typeof(ViewComponentContextAttribute), CreateActivateInfo); _injectActions = new ConcurrentDictionary <Type, PropertyActivator <ViewComponentContext>[]>(); }
public DefaultViewComponentInvoker( ITypeActivatorCache typeActivatorCache, IViewComponentActivator viewComponentActivator) { if (typeActivatorCache == null) { throw new ArgumentNullException(nameof(typeActivatorCache)); } if (viewComponentActivator == null) { throw new ArgumentNullException(nameof(viewComponentActivator)); } _typeActivatorCache = typeActivatorCache; _viewComponentActivator = viewComponentActivator; }