コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }