Home > Software design >  Is there a .Net 6 equivalent for WebApp.Start<Startup>(url: baseAddress)?
Is there a .Net 6 equivalent for WebApp.Start<Startup>(url: baseAddress)?

Time:08-31

I am trying to replace this line for .Net 6. It seems to be using Microsoft.Owin.Hosting. Is there a equivalent from the 4.8 to .Net 6 for this conversion?

_logger.Standard($"Starting Web Service on {baseAddress}");
_server = WebApp.Start<Startup>(url: baseAddress);
_logger.Standard("Web service is started.");

CodePudding user response:

Looks like you can get Microsoft.AspNetCore.Owin from Nuget and use that instead for .NET Core 6.

  • Related