public ServerConfig(IEnumerable <string> notices, Models.Config.ServerConfig config, string version) { this.notices = notices; port = config.Port; external = config.AllowExternal; api_key = config.APIKey; blackholedir = config.BlackholeDir; updatedisabled = config.UpdateDisabled; prerelease = config.UpdatePrerelease; password = string.IsNullOrEmpty(config.AdminPassword) ? string.Empty : config.AdminPassword.Substring(0, 10); logging = Startup.TracingEnabled; basepathoverride = config.BasePathOverride; omdbkey = config.OmdbApiKey; app_version = version; }
public ServerConfig(IEnumerable <string> notices, Models.Config.ServerConfig config, string version) { this.notices = notices; port = config.Port; external = config.AllowExternal; api_key = config.APIKey; blackholedir = config.BlackholeDir; updatedisabled = config.UpdateDisabled; prerelease = config.UpdatePrerelease; password = string.IsNullOrEmpty(config.AdminPassword) ? string.Empty : config.AdminPassword.Substring(0, 10); logging = config.RuntimeSettings.TracingEnabled; basepathoverride = config.BasePathOverride; omdbkey = config.OmdbApiKey; omdburl = config.OmdbApiUrl; app_version = version; proxy_type = config.ProxyType; proxy_url = config.ProxyUrl; proxy_port = config.ProxyPort; proxy_username = config.ProxyUsername; proxy_password = config.ProxyPassword; }