DefaultControllerArgumentBinder Class

Provides a default implementation of Microsoft.AspNetCore.Mvc.Internal.IControllerArgumentBinder. Uses ModelBinding to populate action parameters.

Namespace
Microsoft.AspNetCore.Mvc.Internal
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class DefaultControllerArgumentBinder : IControllerArgumentBinder
class Microsoft.AspNetCore.Mvc.Internal.DefaultControllerArgumentBinder

Constructors

DefaultControllerArgumentBinder(Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider, Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderFactory, Microsoft.AspNetCore.Mvc.ModelBinding.Validation.IObjectModelValidator)
public DefaultControllerArgumentBinder(IModelMetadataProvider modelMetadataProvider, IModelBinderFactory modelBinderFactory, IObjectModelValidator validator)

Methods

BindArgumentsAsync(Microsoft.AspNetCore.Mvc.ControllerContext, System.Object, System.Collections.Generic.IDictionary<System.String, System.Object>)
Return type:System.Threading.Tasks.Task
public Task BindArgumentsAsync(ControllerContext controllerContext, object controller, IDictionary<string, object> arguments)
BindModelAsync(Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor, Microsoft.AspNetCore.Mvc.ControllerContext)
Return type:System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
public Task<ModelBindingResult> BindModelAsync(ParameterDescriptor parameter, ControllerContext controllerContext)
BindModelAsync(Microsoft.AspNetCore.Mvc.Abstractions.ParameterDescriptor, Microsoft.AspNetCore.Mvc.ControllerContext, Microsoft.AspNetCore.Mvc.ModelBinding.IValueProvider)
Return type:System.Threading.Tasks.Task<Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult>
public Task<ModelBindingResult> BindModelAsync(ParameterDescriptor parameter, ControllerContext controllerContext, IValueProvider valueProvider)