internal void addClient(UpdateService.Client client) { Console.WriteLine("logare client"); this.loggedClients.Add(client); Console.WriteLine("clienti logati:"); Console.WriteLine(this.loggedClients); }
public bool Login(User user, int port) { int valid = userRepo.CheckLoginCredentials(user.Username, user.Passwd); if (valid != -1) { TTransport transport = new TSocket("localhost", port); transport.Open(); TProtocol proto = new TBinaryProtocol(transport); UpdateService.Client client = new UpdateService.Client(proto); this.updateClients.Add(client); return(true); } return(false); }