コード例 #1
0
        private async Task LoginAsync(ETeamSettings settings)
        {
            LoginRequest loginRequest = new LoginRequest(settings.Username, settings.Password);
            string       soapRequest  = loginRequest.CreateSoapRequest();

            try
            {
                string soapResponse = await _client.LoginAsync(soapRequest);

                LoginResponse loginResponse = new LoginResponse();
                loginResponse.LoadFromXml(soapResponse);
            }
            catch (ApiException exception)
            {
                throw new SoapFaultException(exception);
            }
        }