SimpleInjectorPageModelActivatorProviderCreateActivator Method

Simple Injector
Creates a Razor Page model activator.

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

public Func<PageContext, Object> CreateActivator(
	CompiledPageActionDescriptor descriptor
)

Parameters

descriptor
Type: CompiledPageActionDescriptor
The CompiledPageActionDescriptor.

Return Value

Type: FuncPageContext, Object
The delegate used to activate the page model.
See Also

Reference