コード例 #1
0
 public static IAppBuilder UseHttpsRedirect(this IAppBuilder builder, int httpsPort = 443, RedirectStatusCode statusCode = RedirectStatusCode.Permanent)
 {
     return(builder.Use <HttpsRedirectMiddleware>(httpsPort, statusCode));
 }
コード例 #2
0
 public HttpsRedirectMiddleware(OwinMiddleware next, int httpsPort, RedirectStatusCode statusCode) : base(next)
 {
     this.httpsPort  = httpsPort;
     this.statusCode = statusCode;
 }