private void TournamentManager_RacesUpdated(int tournamentID, RacesUpdatedEventArgs e) { if (!Application.Current.Dispatcher.CheckAccess()) { Application.Current.Dispatcher.Invoke(() => this.TournamentManager_RacesUpdated(tournamentID, e)); } else { if (tournamentID != this.TournamentID) { return; } UpdateRaces(e.Races); } }
private void TournamentManager_RacesUpdated(int tournamentID, RacesUpdatedEventArgs e) { Clients.All.racesUpdated(tournamentID, e.Races); }