private void GetTopPlayers(object sender, ResponseEventArgs e) { GetTopPlayersResponse response = e.Response as GetTopPlayersResponse; if (response != null) { var topPlayers = response.TopPlayers; foreach (var player in topPlayers) { _topPlayers.Add(player); } } }
public void GetTopPlayersCallback(GetTopPlayersResponse response) { syncContext.Post(new SendOrPostCallback(OnBroadcast <GetTopPlayersResponse>), response); }