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