//public async Task Register(RegisterParameters registerParameters)
        //{
        //    await _authorizeApi.Register(registerParameters);
        //    NotifyAuthenticationStateChanged(GetAuthenticationStateAsync());
        //}

        public async Task Logout()
        {
            await _authorizeApi.Logout();

            _userInfoCache = null;
            NotifyAuthenticationStateChanged(GetAuthenticationStateAsync());
        }
        public async Task <ApiResponseDto> Logout()
        {
            ApiResponseDto apiResponse = await _authorizeApi.Logout();

            NotifyAuthenticationStateChanged(GetAuthenticationStateAsync());
            return(apiResponse);
        }
        public async Task Logout()
        {
            await _authorizeApi.Logout();

            userInfo = null;
            NotifyAuthenticationStateChanged();
        }
예제 #4
0
        public async Task <ClientApiResponse> Logout()
        {
            ClientApiResponse apiResponse = await _authorizeApi.Logout();

            _userInfoCache = null;
            NotifyAuthenticationStateChanged(GetAuthenticationStateAsync());
            return(apiResponse);
        }
예제 #5
0
        public async Task <ApiResponseDto> Logout()
        {
            _appState.UserProfile = null;
            ApiResponseDto apiResponse = await _authorizeApi.Logout();

            _userInfoCache = null;
            NotifyAuthenticationStateChanged(GetAuthenticationStateAsync());
            return(apiResponse);
        }
        public async Task Logout()
        {
            Console.WriteLine("Logout...");

            await _authorizeApi.Logout();

            userInfo = null;
            _serverAuthenticationStateProvider.RaiseChangeEvent();

            Console.WriteLine($"Logout... userInfo: {userInfo}, userInfo.Username: {userInfo?.Username}");
        }
        public async Task Logout()
        {
            await _authorizeApi.Logout();

            userInfo = null;
        }
예제 #8
0
        public async Task Logout()
        {
            await _authorizeApi.Logout();

            UserName = null;
        }