예제 #1
0
        public async Task Fix(ErrorFix errorFix)
        {
            switch (errorFix)
            {
            case ErrorFix.Logout:
                if (_localLoginService.IsAuthenticated)
                {
                    await _localLoginService.LocalLogout();

                    _toastService.ShowInfo(_textService.Toast_AppDidAutomaticLogout, _textService.Toast_Info);
                }
                break;

            case ErrorFix.WrongVersion:
                _navigationService.ForceReload();
                Console.WriteLine("After Fix of versions");
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(errorFix), errorFix, null);
            }
        }
예제 #2
0
 public Task Logout()
 {
     return(_localLoginService.LocalLogout());
 }