/// <summary>
 /// Initializes a new instance of the <see cref="SslRedirectMiddleware"/> class.
 /// </summary>
 /// <param name="next">The next middleware in the pipeline.</param>
 /// <param name="provider">
 /// The <see cref="ISslRedirector"/> providing the redirect functionality.
 /// </param>
 /// <param name="options">The redirect options.</param>
 public SslRedirectMiddleware(RequestDelegate next, ISslRedirector provider, IOptions <SslRedirectOptions> options)
 {
     _next     = next;
     _options  = options.Value;
     _provider = provider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SslRedirectMiddleware"/> class.
 /// </summary>
 /// <param name="next">The next middleware in the pipeline.</param>
 /// <param name="provider">
 /// The <see cref="ISslRedirector"/> providing the redirect functionality.
 /// </param>
 public SslRedirectMiddleware(RequestDelegate next, ISslRedirector provider)
 {
     _next     = next;
     _provider = provider;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequireSslFilter"/> class.
 /// </summary>
 /// <param name="provider">
 /// The <see cref="ISslRedirector"/> providing the redirect functionality.
 /// </param>
 /// <param name="logger">The <see cref="ILogger"/>.</param>
 public RequireSslFilter(ISslRedirector provider, ILogger <RequireSslFilter> logger)
 {
     _provider = provider;
     _logger   = logger;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequireSslFilter"/> class.
 /// </summary>
 /// <param name="provider">
 /// The <see cref="ISslRedirector"/> providing the redirect functionality.
 /// </param>
 /// <param name="options">The redirect options.</param>
 /// <param name="logger">The <see cref="ILogger"/>.</param>
 public RequireSslFilter(ISslRedirector provider, IOptions <SslRedirectOptions> options, ILogger <RequireSslFilter> logger)
 {
     _provider = provider;
     _options  = options.Value;
     _logger   = logger;
 }