public static IApplicationBuilder UseForwardHttpToHttps(this IApplicationBuilder mblogBuilder, Action <HttpToHttpsOption> config) { var options = new HttpToHttpsOption(); config(options); return(mblogBuilder.UseMiddleware <ForwardHttpToHttpsMiddleware>(options)); }
public ForwardHttpToHttpsMiddleware(RequestDelegate next, HttpToHttpsOption option) { this._next = next; this._option = option; }