Mike Stall's .NET Debugging Blog

Notes on Managed Debugging, ICorDebug, and random .NET stuff

Browse by Tags

Tagged Content List
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: How to create a custom value provider in WebAPI

    Here’s how you can easily customize WebAPI parameter binding to include values from source other than the url.  The short answer is that you add a custom ValueProvider and use Model Binding, just like in MVC. ValueProviders are used to provide values for simple types and match on parameter name...
  • Blog Post: How to bind to custom objects in action signatures in MVC/WebAPI

    MVC provides several ways for binding your own arbitrary parameter types.  I’ll describe some common MVC ways and then show how this applies to WebAPI too. You can view this as a MVC-to-WebAPI migration guide.  (Related reading: How WebAPI binds parameters ) Say we have a complex type, Location...
  • Blog Post: MVC Style parameter binding for WebAPI

    I described earlier how WebAPI binds parameters . The entire parameter binding behavior is determined by the IActionValueBinder interface and can be swapped out. The default implementation is DefaultActionValueBinder. Here’s another IActionValueBinder that provides MVC parameter binding semantics. This...
  • Blog Post: How WebAPI does Parameter Binding

    Here’s an overview of how WebAPI binds parameters to an action method.  I’ll describe how parameters can be read, the set of rules that determine which technique is used, and then provide some examples.   [ update ] Parameter binding is ultimately about taking a HTTP request and converting...
  • Blog Post: ASP.Net WebAPI

    I recently joined the ASP.Net team and have been working on WebAPI , which is a new .NET MVC-like framework for building HTTP web services. (This is certainly a change of pace from my previous life in the world of compilers and debuggers, but I’m having a blast ) ScottGu gave a nice overview of WebAPI...
Page 1 of 1 (7 items)