Beispiel #1
0
        public async Task ValidateOAuthCode(string code)
        {
            IsLoading = true;
            await _traktService.AuthorizeAsync(code);

            IsLoading = false;
            CloseAction.Invoke();
        }
        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();
            }
        }