예제 #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;
 }
예제 #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);
 }
예제 #3
0
 /// <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);
 }