Exemplo n.º 1
0
 public static void JoinGame(string username, Action<Game> success, Action failure, string gameId = null)
 {
     var sc = new StorageServiceClient();
     sc.JoinGameCompleted += (o, a) =>
     {
         if (a.Error == null)
             success(a.Result);
         else
             failure();
     };
     sc.JoinGameAsync(username, gameId);
 }
Exemplo n.º 2
0
        public static void JoinGame(string username, Action <Game> success, Action failure, string gameId = null)
        {
            var sc = new StorageServiceClient();

            sc.JoinGameCompleted += (o, a) =>
            {
                if (a.Error == null)
                {
                    success(a.Result);
                }
                else
                {
                    failure();
                }
            };
            sc.JoinGameAsync(username, gameId);
        }