WebAPI can be hosted via 2 ways. The traditional way using HttpSelfHostServer and the new OWIN based hosted. Below is an attempt to compare both techniques.
In HttpSelfHostServer we can see most of the things as configurable. But in OWIN, its by convention.
API Controller
Below is the controller class I am going to host using both the hosting techniques.
No comments:
Post a Comment