FeatureGateAttribute.OnActionExecutionAsync Method

Definition

Performs controller action pre-procesing to ensure that at least one of the specified feature flags are enabled.

public override System.Threading.Tasks.Task OnActionExecutionAsync (Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext context, Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate next);
override this.OnActionExecutionAsync : Microsoft.AspNetCore.Mvc.Filters.ActionExecutingContext * Microsoft.AspNetCore.Mvc.Filters.ActionExecutionDelegate -> System.Threading.Tasks.Task
Public Overrides Function OnActionExecutionAsync (context As ActionExecutingContext, next As ActionExecutionDelegate) As Task

Parameters

context
ActionExecutingContext

The context of the MVC action.

next
ActionExecutionDelegate

The action delegate.

Returns

Returns a task representing the action execution unit of work.

Applies to