コード例 #1
0
        private async Task <bool> LoginAsync()
        {
            try
            {
                using (var service = Config.GetMobileService())
                {
                    var loginRequest = new LoginRequest()
                    {
                        Email    = this.Email,
                        Password = this.Password
                    };
                    loginRequest.CheckValidity();
                    service.AccessToken = await service.Login(loginRequest);

                    return(true);
                }
            }
            catch (Exception e)
            {
                await ExceptionHandler.Handle(e);
            }
            return(false);
        }