当前位置: 首页>>代码示例>>C#>>正文


C# Locators.BuildTypeLocator类代码示例

本文整理汇总了C#中TeamCitySharp.Locators.BuildTypeLocator的典型用法代码示例。如果您正苦于以下问题:C# BuildTypeLocator类的具体用法?C# BuildTypeLocator怎么用?C# BuildTypeLocator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BuildTypeLocator类属于TeamCitySharp.Locators命名空间,在下文中一共展示了BuildTypeLocator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: WithDimensions

 public static BuildLocator WithDimensions(BuildTypeLocator buildType = null,
                                           UserLocator user = null,
                                           string agentName = null,
                                           BuildStatus? status = null,
                                           bool? personal = null,
                                           bool? canceled = null,
                                           bool? running = null,
                                           bool? pinned = null,
                                           int? maxResults = null,
                                           int? startIndex = null,
                                           BuildLocator sinceBuild = null,
                                           DateTime? sinceDate = null,
                                           string[] tags = null,
                                           string branch = null
     )
 {
     return new BuildLocator
                {
                    BuildType = buildType,
                    User = user,
                    AgentName = agentName,
                    Status = status,
                    Personal = personal,
                    Canceled = canceled,
                    Running = running,
                    Pinned = pinned,
                    MaxResults = maxResults,
                    StartIndex = startIndex,
                    SinceBuild = sinceBuild,
                    SinceDate = sinceDate,
                    Tags = tags,
                    Branch = branch
                };
 }
开发者ID:byran,项目名称:TeamCitySharp,代码行数:34,代码来源:BuildLocator.cs

示例2: InvestigationsByBuildConfiguration

        public IList<Investigation> InvestigationsByBuildConfiguration(BuildTypeLocator buildTypeLocator)
        {
            var investigationWrapper = _caller.GetFormat<InvestigationWrapper>("/app/rest/investigations?locator=buildType:({0})",
                buildTypeLocator);

            return investigationWrapper.Investigation ?? new List<Investigation>();
        }
开发者ID:ComputerWorkware,项目名称:TeamCitySharp,代码行数:7,代码来源:Investigations.cs

示例3: BuildType

        public BuildConfig BuildType(BuildTypeLocator locator)
        {
            var build = _caller.GetFormat<BuildConfig>("/app/rest/buildTypes/{0}", locator);

            return build;
        }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:6,代码来源:BuildConfigs.cs

示例4: SetSnapshotDependency

 public void SetSnapshotDependency(BuildTypeLocator locator, SnapshotDependency dependency)
 {
     _caller.PostFormat<SnapshotDependency>(dependency, HttpContentTypes.ApplicationJson,
         HttpContentTypes.ApplicationJson, "/app/rest/buildTypes/{0}/snapshot-dependencies", locator);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:5,代码来源:BuildConfigs.cs

示例5: SetConfigurationPauseStatus

 public void SetConfigurationPauseStatus(BuildTypeLocator locator, bool isPaused)
 {
     _caller.PutFormat(isPaused, HttpContentTypes.TextPlain, "/app/rest/buildTypes/{0}/paused/", locator);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例6: SetBuildTypeTemplate

 public void SetBuildTypeTemplate(BuildTypeLocator locatorBuildType, BuildTypeLocator locatorTemplate)
 {
     _caller.PutFormat(locatorTemplate.ToString(), HttpContentTypes.TextPlain, "/app/rest/buildTypes/{0}/template", locatorBuildType);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例7: PutAllBuildTypeParameters

        public void PutAllBuildTypeParameters(BuildTypeLocator locator, IDictionary<string, string> parameters)
        {
            if(locator == null)
                throw new ArgumentNullException("locator");
            if(parameters == null)
                throw new ArgumentNullException("parameters");

            StringWriter sw = new StringWriter();
            using(XmlTextWriter writer = new XmlTextWriter(sw))
            {
                writer.WriteStartElement("properties");
                foreach(var parameter in parameters)
                {
                    writer.WriteStartElement("property");
                    writer.WriteAttributeString("name", parameter.Key);
                    writer.WriteAttributeString("value", parameter.Value);
                    writer.WriteEndElement();
                }
                writer.WriteEndElement();
            }

            _caller.PutFormat(sw.ToString(), HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/parameters", locator);
        }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:23,代码来源:BuildConfigs.cs

示例8: PostRawBuildTrigger

 public void PostRawBuildTrigger(BuildTypeLocator locator, string rawXml)
 {
     _caller.PostFormat(rawXml, HttpContentTypes.ApplicationXml, "/app/rest/buildTypes/{0}/triggers", locator);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例9: DeleteBuildStep

 public void DeleteBuildStep(BuildTypeLocator locator, string buildStepId)
 {
     _caller.DeleteFormat("/app/rest/buildTypes/{0}/steps/{1}", locator, buildStepId);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例10: DeleteArtifactDependency

 public void DeleteArtifactDependency(BuildTypeLocator locator, string artifactDependencyId)
 {
     _caller.DeleteFormat("/app/rest/buildTypes/{0}/artifact-dependencies/{1}", locator, artifactDependencyId);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例11: DeleteAllBuildTypeParameters

 public void DeleteAllBuildTypeParameters(BuildTypeLocator locator)
 {
     _caller.DeleteFormat("/app/rest/buildTypes/{0}/parameters", locator);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例12: DeleteAgentRequirement

 public void DeleteAgentRequirement(BuildTypeLocator locator, string agentRequirementId)
 {
     _caller.DeleteFormat("/app/rest/buildTypes/{0}/agent-requirements/{1}", locator, agentRequirementId);
 }
开发者ID:nheilbuth,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例13: AttachToTemplate

 public void AttachToTemplate(BuildTypeLocator buildTypeLocator, string buildTemplateId)
 {
     _caller.PutFormat(buildTemplateId, HttpContentTypes.TextPlain, "/app/rest/buildTypes/{0}/template", buildTypeLocator);
 }
开发者ID:abugov,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例14: UpdateName

 public void UpdateName(BuildTypeLocator buildTypeLocator, string newName)
 {
     _caller.PutFormat(newName, HttpContentTypes.TextPlain, "/app/rest/buildTypes/{0}/name", buildTypeLocator);
 }
开发者ID:abugov,项目名称:TeamCitySharp,代码行数:4,代码来源:BuildConfigs.cs

示例15: CopyBuildConfiguration

        public BuildConfig CopyBuildConfiguration(BuildTypeLocator buildTypeLocator, ProjectLocator destinationProjectLocator, string newConfigurationName)
        {
            var data = string.Format(@"<newBuildTypeDescription name='{0}' sourceBuildTypeLocator='{1}' copyAllAssociatedSettings='true' shareVCSRoots='false'/>", newConfigurationName, buildTypeLocator);

            return _caller.PostFormat<BuildConfig>(data, HttpContentTypes.ApplicationXml, HttpContentTypes.ApplicationJson, "/app/rest/projects/{0}/buildTypes", destinationProjectLocator);
        }
开发者ID:abugov,项目名称:TeamCitySharp,代码行数:6,代码来源:BuildConfigs.cs


注:本文中的TeamCitySharp.Locators.BuildTypeLocator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。