Creates a Razor Page model activator.
Namespace: SimpleInjector.Integration.AspNetCore.Mvc
Assembly: SimpleInjector.Integration.AspNetCore.Mvc (in SimpleInjector.Integration.AspNetCore.Mvc.dll) Version: 5.0.0
Syntax
public Func<PageContext, Object> CreateActivator( CompiledPageActionDescriptor descriptor )
Parameters
- descriptor
- Type: CompiledPageActionDescriptor
The CompiledPageActionDescriptor.
Return Value
Type: FuncPageContext, ObjectThe delegate used to activate the page model.
See Also