Hi,
I am using app42 services and fetching list of users in the beginning of the game but that takes too much time and hangs while adding that data to a list using for loop.
May be the approach is not up to the mark. Any help would be great. Code snippet is below:
public class GetAllUserCallBack : App42CallBack
{
public void OnSuccess(object response)
{
IList user = (IList) response;
// App42Log.Console("userName is " + user.Count);
List userNames=new List();
for(int i = 0; i < user.Count; i++)
{
userNames.Add(user[i].GetUserName() ) ;
}
}
public void OnException(Exception e)
{
App42Log.Console("Exception : " + e);
}
}
↧