Strong binding for CSV reader

  I updated my open source CSV reader to provide parsing rows back into strongly typed objects. You can get it from Nuget as CsvTools 1.0.6. For example, suppose we have a CSV file “test.csv” like so: name, species, favorite fruit, score Kermit, Frog, apples, 18% Ms. Piggy, Pig, pears, 22% Fozzy, Bear, bananas, 19.4%…

2

Per-controller configuration in WebAPI

We’ve just added support for WebAPI to provide per-controller-type configuration. WebAPI has a HttpConfiguration object that provides configuration such as: route table Dependency resolver for specifying services list of Formatters, ModelBinders, and other parameter binding settings. list of message handlers, However, a specific controller may need its own specific services. And so we’ve added per-controller-type…


WebAPI Parameter binding under the hood

I wrote about WebAPI’s parameter binding at a high level before. Here’s what’s happening under the hood. The most fundamental object for binding parameters from a request in WebAPI is a HttpParameterBinding. This binds a single parameter. The binding is created upfront and then is invoked across requests. This means the binding must be determined…