SimpleInjectorPageModelActivatorProviderCreateReleaser Method

Simple Injector
Releases a Razor Page model.

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

public Action<PageContext, Object> CreateReleaser(
	CompiledPageActionDescriptor descriptor
)

Parameters

descriptor
Type: CompiledPageActionDescriptor
The CompiledPageActionDescriptor.

Return Value

Type: ActionPageContext, Object
The delegate used to dispose the activated Razor Page model or null.
See Also

Reference