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

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