Beispiel #1
0
        public bool IsValidUser(string userName, string password)
        {
            try
            {
                var url = "http://10.131.40.102/IsValidSvnUser.aspx?user="******":" + password)
                          + "&ip=" + IPAddress.GetCurrentMachineIp();

                var res = _httpEngine.GetResponseStringAsync(url).Result;
            }
            catch (Exception ex)
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        public string ReadAllText(string path)
        {
            var result = _httpEngine.GetHttpResponseAsync(path).Result;

            return(_httpEngine.GetResponseStringAsync(result[DownloadUrl].ToString()).Result);
        }