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