I recently asked a question here about a stack overflow about finding the right extensibility point for model binding in the beta version of the web API. Using a custom provider / IModelBinder gives me full control of model binding and access to cost providers.
However, this is really too much control. I just want to control how multiple values ββare matched, and I don't want to bind a code model to hand-held code, which otherwise would work fine.
Ultimately, this is what I would like to do:
public class MyCustomModelBinder : IModelBinder { public bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext) {
It seems that it is rather difficult to get the default provider for WebAPI. Does anyone know if it is available and how you can get it here in a special connecting device?
asp.net-web-api
Brandon linton
source share