Share via


IPageModelFactoryProvider.CreateAsyncModelDisposer Method

Definition

Releases a Razor Page model asynchronously.

public virtual Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext,object,System.Threading.Tasks.ValueTask>? CreateAsyncModelDisposer (Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor descriptor);
abstract member CreateAsyncModelDisposer : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj, System.Threading.Tasks.ValueTask>
override this.CreateAsyncModelDisposer : Microsoft.AspNetCore.Mvc.RazorPages.CompiledPageActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.RazorPages.PageContext, obj, System.Threading.Tasks.ValueTask>
Public Overridable Function CreateAsyncModelDisposer (descriptor As CompiledPageActionDescriptor) As Func(Of PageContext, Object, ValueTask)

Parameters

Returns

The delegate used to release the created Razor Page model asynchronously.

Applies to