Exemple #1
0
 public void Update(UtilityConfig utility)
 {
     this.HTTPPort    = utility.HTTPPort;
     this.EnableHTTPS = utility.EnableHTTPS;
     this.HTTPSPort   = utility.HTTPSPort;
     this.SSLCertificateSubjectName            = utility.SSLCertificateSubjectName;
     this.SSLCertificateStoreName              = utility.SSLCertificateStoreName;
     this.AllowLocalhostConnectionsOnlyForHttp = utility.AllowLocalhostConnectionsOnlyForHttp;
     this.ConfigUsername     = utility.ConfigUsername;
     this.ConfigPasswordHash = utility.ConfigPasswordHash;
 }
 public HttpServerConfig(UtilityConfig utilityConfig)
 {
     this.EnableHTTP = true; //Http must alays be enables
     this.HTTPPort   = utilityConfig.HTTPPort;
     this.AllowLocalhostConnectionsOnlyForHttp = utilityConfig.AllowLocalhostConnectionsOnlyForHttp;
     this.EnableHTTPS               = utilityConfig.EnableHTTPS;
     this.HTTPSPort                 = utilityConfig.HTTPSPort;
     this.SSLCertificateStoreName   = utilityConfig.SSLCertificateStoreName;
     this.SSLCertificateSubjectName = utilityConfig.SSLCertificateSubjectName;
     this.EnableCache               = false;
     this.Rules = null;
 }
Exemple #3
0
 public HttpServer(UtilityConfig utilityConfig) : base(new StaticFileProcessorConfig() { WWWDirectory = null, EnableCache = false })
 {
     CommonConstructor((new CancellationTokenSource()).Token, new HttpServerConfig(utilityConfig));
 }
Exemple #4
0
 public WebServerConfig(HttpServerConfig httpServerConfig, UtilityConfig utilityConfig)
 {
     this.Update(httpServerConfig);
     this.UtilityConfig = utilityConfig;
 }