public override void Start(IMessanger messanger) { this.ts = TeamSpeak.GetTeamspeak(ConfigurationManager.AppSettings["tsServer"], Int32.Parse(ConfigurationManager.AppSettings["tsQueryPort"])); this.ts.ErrorOccured += this.ts_ErrorOccured; base.Start(messanger); }
public void Start(IMessanger messanger) { this.messanger = messanger; this.ts = TeamSpeak.GetTeamspeak(ConfigurationManager.AppSettings["tsServer"], Int32.Parse(ConfigurationManager.AppSettings["tsQueryPort"])); this.ts.ErrorOccured += this.ts_ErrorOccured; this.ts.PlayerJoined += this.ts_PlayerJoined; this.ts.PlayerLeft += this.ts_PlayerLeft; this.ts.StartListener(15000); }