Katana 或 Microsoft.Owin.HttpListener 用于在单个服务中同时提供 http 和 https

Katana or Microsoft.Owin.HttpListener for Servicing both http and https in a single service

我无法理解在 single service 中实现 https and http 的方法。

我有一个OWIN hosted Web API。目前它只提供 http 服务。我喜欢为它实现 ssl。创建 two http server instances 就可以了,但是这个 Whosebug question 说 Katana 或 Microsoft.Owin.HttpListener 可以用来实现这个目的。
使用 Microsoft.Owin.HttpListener 怎么可能?

首先设置 https:https://github.com/aspnet/AspNetKatana/wiki/Selfhosting

那么你只需要在启动服务时同时添加 http 和 https url: https://github.com/aspnet/AspNetKatana/blob/f3a8d848b7548e62d52737efa0a4fc9cf6c6cedf/src/Microsoft.Owin.Hosting/StartOptions.cs#L39 https://github.com/aspnet/AspNetKatana/blob/f3a8d848b7548e62d52737efa0a4fc9cf6c6cedf/src/Microsoft.Owin.Hosting/WebApp.cs#L34

今天叫什么设置url?