最简单的例子(官方)在控制台app里面运行:
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
真实一点的例子,在Windows 服务中运行:
https://github.com/danesparza/OWIN-WebAPI-Service
最简单的例子(官方)在控制台app里面运行:
http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api
真实一点的例子,在Windows 服务中运行:
https://github.com/danesparza/OWIN-WebAPI-Service