private async Task InitializeQoSServerList() { if (_dataCenterMap.Count > 0) { // If the dataCenterMap is already initialized, return return; } var request = new ListQosServersRequest(); PlayFabResult<ListQosServersResponse> response = await PlayFabMultiplayerAPI.ListQosServersAsync(request); if (response == null || response.Error != null) { return; } foreach (QosServer qosServer in response.Result.QosServers) { if (string.IsNullOrEmpty(qosServer.Region)) { continue; } _dataCenterMap[qosServer.Region] = qosServer.ServerUrl; } }