I´m starting developing a new web application and looking at using OWIN. One thing that I can´t work out from any documentation is what is the difference between creating the C# application as a Console App and starting it running from its exe file, or to create the project as a Class Library / dll, and using OwinHost.exe to start it up.
Does running Owinhost.exe to start the process give you anything much over running it as a console app?
One of the components included in the Microsoft OWIN components is the lightweight, console-based OwinHost.exe. This host finds the user’s startup code and uses it to build an OWIN pipeline; it then uses an HttpListener-based server to receive requests and push them through the OWIN pipeline. OwinHost is a nice, lightweight option for development-time hosting – particularly if the application will ultimately be deployed into a self-hosted 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 should use OwinHost for development and a windows service or console app for production.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With