Click or drag to resize

AutofacWebApiModelBinderProviderGetBinder Method

Find a binder for the given type.

Namespace:  Autofac.Integration.WebApi
Assembly:  Autofac.Integration.WebApi (in Autofac.Integration.WebApi.dll) Version: 6.0.0+03bf347ff3a78c2557675254b1a417eef4b464ec
Syntax
public override IModelBinder GetBinder(
	HttpConfiguration configuration,
	Type modelType
)

Parameters

configuration
Type: HttpConfiguration
A configuration object.
modelType
Type: SystemType
The type of the model to bind against.

Return Value

Type: IModelBinder
A binder, which can attempt to bind this type. Or null if the binder knows statically that it will never be able to bind the type.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if configuration is .
See Also