public Client(TcpClient client, X509Certificate certificate, NpgsqlConnection dbConnection, Server server) { _client = client; _sslChannel = new SslChannel(_client, certificate); _dbController = new DbController(dbConnection); _server = server; }
public static void Connect(string host, int port) { _sslChannel = new SslChannel(host, port); _sslChannel.Disconnected += SslChannalOnDisconnected; }