private void TournamentManager_NextRacesUpdated(int tournamentID, NextRacesUpdatedEventArgs e) { if (!Application.Current.Dispatcher.CheckAccess()) { Application.Current.Dispatcher.Invoke(() => this.TournamentManager_NextRacesUpdated(tournamentID, e)); } else { if (tournamentID != this.TournamentID) { return; } PopulateNextRaces(e.NextRaces); } }
private void TournamentManager_NextRacesUpdated(int tournamentID, NextRacesUpdatedEventArgs e) { Clients.All.nextRacesUpdated(tournamentID, e.NextRaces); }