예제 #1
0
        private async Task <IEnumerable <object> > GetAllPullRequestFromServerAsync(string issueNo)
        {
            var issueInformation = await GetIsuueInformation(issueNo);

            var dic = await
                      _httpEngine.GetHttpResponseAsync(
                string.Format(
                    rootUrl + "/dev-status/1.0/issue/detail?issueId={0}&applicationType=github&dataType=pullrequest&_=1460441522916",
                    issueInformation["id"]));

            var detail = (Dictionary <string, object>)((object[])dic["detail"])[0];

            return((object[])(detail["pullRequests"]));
        }
예제 #2
0
        public string ReadAllText(string path)
        {
            var result = _httpEngine.GetHttpResponseAsync(path).Result;

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