Exemplo n.º 1
0
        private async void Root_OnInitialized()
        {
            root.OnInitialized -= Root_OnInitialized;
            await Load();

            appInitializer.SetInitialized();

            gameCancellationTokenSource = new CancellationTokenSource();

            try
            {
                await gameStartUseCase.PlayGame(gameCancellationTokenSource.Token);
            }
            catch (TaskCanceledException) { }
        }