示例#1
0
        public Task <VcsRoot> Execute(string vcsRootId, string buildId)
        {
            var model = _teamCityVcsEntryFactory.Create(vcsRootId);

            var serializerSettings =
                new JsonSerializerSettings
            {
                ContractResolver  = new CamelCasePropertyNamesContractResolver(),
                NullValueHandling = NullValueHandling.Ignore
            };
            var json = JsonConvert.SerializeObject(model, serializerSettings);

            return(_teamcityService.AttachVcsRoot(json, buildId));
        }