IPageFactoryProvider.CreateAsyncPageDisposer 方法

定义

异步释放 Razor 页面。

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

参数

返回

用于异步释放所创建页面的委托。

适用于