Exemplo n.º 1
0
 public Client(string username, int port, string path, string configFile)
 {
     _username = username;
     _port = port;
     _path = path;
     _configFile = _path + configFile;
     ReadConfigurationFile();
     _isOnline = false;
     //initPMSObject();
     _slotManager = new SlotManager(_username, _port, _servers);
     //_slotManager.setPMSObject(pms);
     string logpath = new Uri(_path + "log\\log_client_" + _username + ".txt").LocalPath;
     _logfile = new StreamWriter(logpath, true);
     _logfile.WriteLine("-");
     _logfile.AutoFlush = true;
 }
Exemplo n.º 2
0
        public Client(string username, int port, string path, string configFile)
        {
            _username   = username;
            _port       = port;
            _path       = path;
            _configFile = _path + configFile;
            ReadConfigurationFile();
            _isOnline = false;
            //initPMSObject();
            _slotManager = new SlotManager(_username, _port, _servers);
            //_slotManager.setPMSObject(pms);
            string logpath = new Uri(_path + "log\\log_client_" + _username + ".txt").LocalPath;

            _logfile = new StreamWriter(logpath, true);
            _logfile.WriteLine("-");
            _logfile.AutoFlush = true;
        }