WCF Web API / ASP.NET
In the last posts, I’ve been exploring the new ASP.NET Web API Beta architecture. I started by the high-level processing architecture, then described web hosting and in-memory hosting, i.e., directly connecting a client to the server without going through the network.
This post describes a third “out of the box” hosting option: self-hosting. The following code excerpt exemplifies the usage of the HttpSelfHostServer class to host a server on a console application.
Internally, the HttpSelfHostServer uses a WCF channel stack layer to obtain messages from the transport medium and then pushes them into the upper message handler pipeline.
The following section briefly presents the WCF high-level architecture, setting the ground for the description of Web API self-hosting characteristics.
The WCF architecture is divided into…
Ver la entrada original 437 palabras más