Exemplo n.º 1
0
        public async Task ValidateOAuthCode(string code)
        {
            IsLoading = true;
            await _traktService.AuthorizeAsync(code);

            IsLoading = false;
            CloseAction.Invoke();
        }
Exemplo n.º 2
0
        public async Task ValidateOAuthCode(string code)
        {
            try
            {
                IsLoading = true;
                await _traktService.AuthorizeAsync(code);

                IsLoggedIn = true;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
            }
            finally
            {
                IsLoading = false;
                CloseAction.Invoke();
            }
        }