Пример #1
0
        public ServerOptions AddListen(string host, int port)
        {
            ListenHandler listenOptions = new ListenHandler
            {
                Host = host,
                Port = port
            };

            Listens.Add(listenOptions);
            return(this);
        }
Пример #2
0
        public ServerOptions AddListenSSL(string certificateFile, string password, string host, int port = 443)
        {
            ListenHandler listenOptions = new ListenHandler
            {
                Host                = host,
                Port                = port,
                SSL                 = true,
                CertificateFile     = certificateFile,
                CertificatePassword = password
            };

            Listens.Add(listenOptions);
            return(this);
        }