Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Self Hosting OWIN in .NET Core

Tags:

c#

.net-core

owin

With legacy .NET, you could self-host OWIN via the Microsoft.AspNet.WebApi.OwinSelfHost NuGet package.

Is there a way to self-host OWIN in a .NET Core console app?

like image 870
user687554 Avatar asked Sep 26 '18 13:09

user687554


People also ask

What is OWIN self hosting?

Open Web Interface for . NET (OWIN) defines an abstraction between . NET web servers and web applications. OWIN decouples the web application from the server, which makes OWIN ideal for self-hosting a web application in your own process, outside of IIS.

Is OWIN supported in .NET core?

ASP.NET Core: Supports the Open Web Interface for . NET (OWIN).

What is self hosting in .NET core?

Self Host just means it uses the built-in Web Server, which is in contrast to classic ASP.NET Framework Web Apps which typically requires IIS or the built-in WebDev server to run.


1 Answers

Yes you can, use the Microsoft.AspNetCore.Owin Package.

Please see https://docs.microsoft.com/en-us/aspnet/core/fundamentals/owin?view=aspnetcore-2.1

like image 137
Janus Pienaar Avatar answered Sep 30 '22 19:09

Janus Pienaar