SimpleInjectorAspNetCoreBuilderMvcExtensionsAddTagHelperActivation Method

Simple Injector
Registers the application's tag helpers that in Simple Injector and instructs ASP.NET Core to let Simple Injector create those tag helpers.

Namespace:  SimpleInjector
Assembly:  SimpleInjector.Integration.AspNetCore.Mvc (in SimpleInjector.Integration.AspNetCore.Mvc.dll) Version: 5.0.0
Syntax

public static SimpleInjectorAspNetCoreBuilder AddTagHelperActivation(
	this SimpleInjectorAspNetCoreBuilder builder,
	Predicate<Type> applicationTypeSelector = null
)

Parameters

builder
Type: SimpleInjector.Integration.AspNetCoreSimpleInjectorAspNetCoreBuilder
The builder instance.
applicationTypeSelector (Optional)
Type: SystemPredicateType
An optional predicate that instructs Simple Injector which tag helpers to register and construct and which tag helpers to be instructed by ASP.NET Core itself. When ommitted, Simple Injector will skip all tag helpers in the 'Microsoft.' namespace.

Return Value

Type: SimpleInjectorAspNetCoreBuilder
The supplied builder instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SimpleInjectorAspNetCoreBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference