IControllerActivatorProvider.CreateAsyncReleaser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an Action that releases a controller.
public virtual Func<Microsoft.AspNetCore.Mvc.ControllerContext,object,System.Threading.Tasks.ValueTask>? CreateAsyncReleaser (Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor descriptor);
abstract member CreateAsyncReleaser : Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.ControllerContext, obj, System.Threading.Tasks.ValueTask>
override this.CreateAsyncReleaser : Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor -> Func<Microsoft.AspNetCore.Mvc.ControllerContext, obj, System.Threading.Tasks.ValueTask>
Public Overridable Function CreateAsyncReleaser (descriptor As ControllerActionDescriptor) As Func(Of ControllerContext, Object, ValueTask)
Parameters
- descriptor
- ControllerActionDescriptor
Returns
The delegate used to dispose the activated controller.