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); }
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); }