public ServerOptions AddListen(string host, int port) { ListenHandler listenOptions = new ListenHandler { Host = host, Port = port }; Listens.Add(listenOptions); return(this); }
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); }