public RequireSslAttribute(IApplicationSettings applicationSettings) { HttpsPort = applicationSettings.Get("WebServer.HttpsPort", () => DefaultHttpsPort); UrlFormat = HttpsPort == DefaultHttpsPort ? "https://{0}{1}" : "https://{0}:" + HttpsPort + "{1}"; }