Example #1
0
 public Server(string filename)
 {
     _servers = new List<ServerMetadata>();
     ReadConfigurationFile(filename);
     action = new ServerAction(this._username);
     lookup = new ServerLookup(this._username, action, _servers);
     facade = new ServerFacade(this._username, _port, action, lookup, _servers);
 }
Example #2
0
 public Server(string filename)
 {
     _servers = new List <ServerMetadata>();
     ReadConfigurationFile(filename);
     action = new ServerAction(this._username);
     lookup = new ServerLookup(this._username, action, _servers);
     facade = new ServerFacade(this._username, _port, action, lookup, _servers);
 }
Example #3
0
 public ServerFacade(string username, int port, ServerAction action, ServerLookup lookup, List <ServerMetadata> _servers)
 {
     this._username = username;
     this.action    = action;
     this.lookup    = lookup;
     this._port     = port;
     this._servers  = _servers;
     _isOnline      = true;
 }
 public ServerFacade(string username, int port, ServerAction action, ServerLookup lookup, List<ServerMetadata> _servers)
 {
     this._username = username;
     this.action = action;
     this.lookup = lookup;
     this._port = port;
     this._servers = _servers;
     _isOnline = true;
 }
Example #5
0
 public Server(string username, int port, string path, string configFile)
 {
     _username = username;
     _port = port;
     _path = path;
     _configFile = _path + configFile;
     _servers = new List<ServerMetadata>();
     ReadConfigurationFile();
     action = new ServerAction(_username);
     lookup = new ServerLookup(this._username, action, _servers);
     facade = new ServerFacade(this._username, _port,  action, lookup, _servers);
 }
Example #6
0
 public Server(string username, int port, string path, string configFile)
 {
     _username   = username;
     _port       = port;
     _path       = path;
     _configFile = _path + configFile;
     _servers    = new List <ServerMetadata>();
     ReadConfigurationFile();
     action = new ServerAction(_username);
     lookup = new ServerLookup(this._username, action, _servers);
     facade = new ServerFacade(this._username, _port, action, lookup, _servers);
 }