asp.net web api self hosting / owin / katana

徘徊边缘 提交于 2019-12-05 01:34:39

NuGet package here clearly states this.

Microsoft ASP.NET Web API 2.2 Self Host 5.2.2 This is a legacy package for hosting ASP.NET Web API within your own process (outside of IIS). Please use the Microsoft.AspNet.WebApi.OwinSelfHost package for new projects.

Anyways, SelfHost is old and is based on WCF stack. OwinSelfHost is new and is based on Katana (name is Katana and not Kitana, BTW).

For production hosting, console app is not practical. You will need to create a Windows service. Take a look at this.

after working on months with webapi/owin I got answers to above questions..

The package to use

Microsoft.AspNet.WebApi.OwinSelfHost

and for hosting better to use topshelf

Topshelf

please read this blog post

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!