Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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);
 }