O'Reilly logo

Practical ASP.NET Web API by Badrinarayanan Lakshmiraghavan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required