public WRS_SpectatingClient() { CConfiguration config = new CConfiguration(); config.uri = uri; configuration = new JConfiguration(config.SendCommand()); if (!configuration.IsValid) throw new Exception("Fehler beim Verbinden. Empfangene Configuration nicht gültig"); httpTimer = new System.Timers.Timer(); httpTimer.Interval = (double)refreshHttpInterval; httpTimer.Elapsed += httpTimer_Elapsed; httpTimer.Enabled = true; }
public void Start() { //String teamName = "HelloKittyStorm" + DateTime.Now.Ticks.ToString(); String teamName = "HelloKittyStorm"; CConfiguration cConfig = new CConfiguration(); cConfig.uri = uri; config = new JConfiguration(cConfig.SendCommand()); CTeam cTeam = new CTeam(); cTeam.TeamName = teamName; cTeam.uri = uri; team = new JTeam(cTeam.SendCommand()); Task.Factory.StartNew(() => ThinkTask()); }