CHAPTER 9

image

Hosting ASP.NET Web API

Though ASP.NET Web API has ASP.NET in the name, it is not tied to ASP.NET. In fact, ASP.NET Web API is host-independent. There are three ways you can host your HTTP services built using ASP.NET Web API:

  1. Using the ASP.NET infrastructure backed by the IIS (Internet Information Services) server, a technique called web hosting
  2. Using any Windows process such as a console application or Windows service, a technique called self-hosting
  3. Connecting a client to the Web API runtime, without hitting the network, a technique called in-memory hosting, used mainly for testing purposes

9.1 Web Hosting ASP.NET Web API

Get Practical ASP.NET Web API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.