/// <summary> /// Initializes a new instance of the AuthenticationInit class /// </summary> /// <param name="parent">the object that initializes the web-host</param> public SslHubInit(IServiceHubProvider parent, bool withHsts, int httpsRedirectPort) { this.parent = parent; this.withHsts = withHsts; this.httpsRedirectPort = httpsRedirectPort; parent.RegisterAppConfigureProvider(this); parent.RegisterServicesConfigureProvider(this); parent.RegisterEndPointDefaultsConfigurator(this); certificateAutoSelect = true; }
/// <summary> /// Initializes a new instance of the AuthenticationInit class /// </summary> /// <param name="parent">the object that initializes the web-host</param> public SslHubInit(IServiceHubProvider parent, bool withHsts, int httpsRedirectPort, string pathToCertificate, string certificatePassword) { this.parent = parent; this.withHsts = withHsts; this.httpsRedirectPort = httpsRedirectPort; this.pathToCertificate = pathToCertificate; this.certificatePassword = certificatePassword; parent.RegisterAppConfigureProvider(this); parent.RegisterServicesConfigureProvider(this); parent.RegisterEndPointDefaultsConfigurator(this); }
/// <summary> /// Initializes a new instance of the AuthenticationInit class /// </summary> /// <param name="parent">the object that initializes the web-host</param> public AuthenticationInit(IServiceHubProvider parent) { parent.RegisterAppConfigureProvider(this); parent.RegisterServicesConfigureProvider(this); }