コード例 #1
0
        public async Task <PartialViewResult> Content()
        {
            var settings = await _settingsService.Get <TeamCitySettings>(Const.PluginName);

            var builds = await _teamCityService.GetBuilds(settings.Url, settings.Username, settings.Password);

            var models = _buildMapper.Map(builds);

            return(PartialView(models));
        }
コード例 #2
0
        public IList <ICEBuild> GetBuilds()
        {
            var builds = _service.GetBuilds();

            return(TeamCityBuildAdapter.Translate(builds));
        }