public static void CreateGame(string host, Action<Game> success, Action failure) { var sc = new StorageServiceClient(); sc.CreateGameCompleted += (o, a) => { if (a.Error == null) success(a.Result); else failure(); }; sc.CreateGameAsync(host); }
public static void CreateGame(string host, Action <Game> success, Action failure) { var sc = new StorageServiceClient(); sc.CreateGameCompleted += (o, a) => { if (a.Error == null) { success(a.Result); } else { failure(); } }; sc.CreateGameAsync(host); }