What is the difference between using Owinhost.exe to start an OWIN web service or console application

I am starting to develop a new web application and look at using OWIN. One thing that I can’t solve from any documentation is the difference between creating a C # application as a console application and starting it from its exe file or to create a project as a class library / dll and using OwinHost.exe to start it .

Did you launch Owinhost.exe to start the process so that you can use it as a console application?

+6
source share
1 answer

One of the components that make up Microsoft OWIN components is the lightweight, console-based OwinHost.exe. This host finds users the startup code and uses it to build the OWIN pipeline; he then uses the HttpListener-based Server to receive requests and push them through the OWIN pipeline. OwinHost is a good, easy option for development time - especially if the application is ultimately deployed to a self-service environment.

Source http://blogs.msdn.com/b/webdev/archive/2013/09/11/visual-studio-2013-custom-web-servers-and-owinhost-exe.aspx

In other words, you must use OwinHost for development, as well as a Windows application or a console application for production.

+1
source

All Articles