public SimpleWebServer(string prefixes, X509Certificate2 certificate = null) { Uri uri = new Uri(prefixes); this.port = uri.Port; this.certificate = certificate; _worker = new HttpWorker(); ModuleManager moduleManager = new ModuleManager(); moduleManager.Add(_worker); _listener = new HttpServer(moduleManager); }