FilterActionInvoker Class¶
Constructors¶
-
FilterActionInvoker
(Microsoft.AspNet.Mvc.ActionContext, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.Core.IFilterProvider>, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.IInputFormatter>, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.IOutputFormatter>, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.ModelBinding.IModelBinder>, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.ModelBinding.Validation.IModelValidatorProvider>, System.Collections.Generic.IReadOnlyList<Microsoft.AspNet.Mvc.ModelBinding.IValueProviderFactory>, Microsoft.AspNet.Mvc.IScopedInstance<Microsoft.AspNet.Mvc.ActionBindingContext>, ILoggerFactory, System.Int32)¶ Arguments: - actionContext (Microsoft.AspNet.Mvc.ActionContext) –
- filterProviders (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.Core.IFilterProvider}) –
- inputFormatters (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.IInputFormatter}) –
- outputFormatters (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.IOutputFormatter}) –
- modelBinders (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ModelBinding.IModelBinder}) –
- modelValidatorProviders (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ModelBinding.Validation.IModelValidatorProvider}) –
- valueProviderFactories (System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.ModelBinding.IValueProviderFactory}) –
- actionBindingContextAccessor (Microsoft.AspNet.Mvc.IScopedInstance{Microsoft.AspNet.Mvc.ActionBindingContext}) –
- loggerFactory (ILoggerFactory) –
- maxModelValidationErrors (System.Int32) –
public FilterActionInvoker(ActionContext actionContext, IReadOnlyList<IFilterProvider> filterProviders, IReadOnlyList<IInputFormatter> inputFormatters, IReadOnlyList<IOutputFormatter> outputFormatters, IReadOnlyList<IModelBinder> modelBinders, IReadOnlyList<IModelValidatorProvider> modelValidatorProviders, IReadOnlyList<IValueProviderFactory> valueProviderFactories, IScopedInstance<ActionBindingContext> actionBindingContextAccessor, ILoggerFactory loggerFactory, int maxModelValidationErrors)
-
Properties¶
-
ActionBindingContext
()¶ Return type: Microsoft.AspNet.Mvc.ActionBindingContext protected ActionBindingContext ActionBindingContext { get; }
-
ActionContext
()¶ Return type: Microsoft.AspNet.Mvc.ActionContext protected ActionContext ActionContext { get; }
-
Instance
()¶ Return type: System.Object protected object Instance { get; }
-
Methods¶
-
BindActionArgumentsAsync
(Microsoft.AspNet.Mvc.ActionContext, Microsoft.AspNet.Mvc.ActionBindingContext)¶ Arguments: - context (Microsoft.AspNet.Mvc.ActionContext) –
- bindingContext (Microsoft.AspNet.Mvc.ActionBindingContext) –
Return type: System.Threading.Tasks.Task{System.Collections.Generic.IDictionary{System.String,System.Object}}
protected abstract Task<IDictionary<string, object>> BindActionArgumentsAsync(ActionContext context, ActionBindingContext bindingContext)
-
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.CreateInstance()
Called to create an instance of an object which will act as the reciever of the action invocation.
Return type: System.Object Returns: The constructed instance or <c>null</c>. protected abstract object CreateInstance()
-
InvokeActionAsync
(Microsoft.AspNet.Mvc.ActionExecutingContext)¶ Arguments: - actionExecutingContext (Microsoft.AspNet.Mvc.ActionExecutingContext) –
Return type: System.Threading.Tasks.Task{Microsoft.AspNet.Mvc.IActionResult}
protected abstract Task<IActionResult> InvokeActionAsync(ActionExecutingContext actionExecutingContext)
-
Microsoft.AspNet.Mvc.Core.FilterActionInvoker.InvokeAsync()
Return type: System.Threading.Tasks.Task public virtual Task InvokeAsync()
-
ReleaseInstance
(System.Object)¶ Called to create an instance of an object which will act as the reciever of the action invocation.
Arguments: - instance (System.Object) – The instance to release.
protected abstract void ReleaseInstance(object instance)
-