Example #1
0
        protected TeamCityObject(TeamCityServiceContext context, string id)
        {
            Verify.Argument.IsNotNull(context, nameof(context));

            Context = context;
            Id      = id;
        }
Example #2
0
        protected TeamCityObject(TeamCityServiceContext context, string id)
        {
            Verify.Argument.IsNotNull(context, "context");

            _context = context;
            _id      = id;
        }
Example #3
0
        internal TeamCityObjectsCacheBase(TeamCityServiceContext context)
        {
            Verify.Argument.IsNotNull(context, "context");

            _cache   = new Dictionary <string, T>();
            _context = context;
        }
Example #4
0
 internal Build(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     _status    = TeamCityUtility.LoadBuildStatus(node.Attributes[StatusProperty.XmlNodeName]);
     _number    = TeamCityUtility.LoadString(node.Attributes[NumberProperty.XmlNodeName]);
     _startDate = TeamCityUtility.LoadDateForSure(node.Attributes[StartDateProperty.XmlNodeName]);
     _buildtype = Context.BuildTypes.Lookup(node.Attributes[BuildTypeProperty.XmlNodeName].InnerText);
 }
Example #5
0
File: Build.cs Project: Kuzq/gitter
 internal Build(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     _status		= TeamCityUtility.LoadBuildStatus(node.Attributes[StatusProperty.XmlNodeName]);
     _number		= TeamCityUtility.LoadString(node.Attributes[NumberProperty.XmlNodeName]);
     _startDate	= TeamCityUtility.LoadDateForSure(node.Attributes[StartDateProperty.XmlNodeName]);
     _buildtype	= Context.BuildTypes.Lookup(node.Attributes[BuildTypeProperty.XmlNodeName].InnerText);
 }
Example #6
0
        protected TeamCityObject(TeamCityServiceContext context, XmlNode node)
        {
            Verify.Argument.IsNotNull(context, "context");
            Verify.Argument.IsNotNull(node, "node");

            _context = context;
            _id      = TeamCityUtility.LoadString(node.Attributes[IdProperty.XmlNodeName]);
            _webUrl  = TeamCityUtility.LoadString(node.Attributes[WebUrlProperty.XmlNodeName]);
        }
Example #7
0
        public IGuiProvider CreateGuiProvider(IRepository repository)
        {
            var section = repository.ConfigSection.GetSection("IssueTrackers").GetSection("TeamCity");

            var uri      = section.GetValue <string>("ServiceUri");
            var username = Unmask(section.GetValue <string>("Username"));
            var password = Unmask(section.GetValue <string>("Password"));
            var pid      = section.GetValue <string>("ProjectId");
            var svc      = new TeamCityServiceContext(new Uri(uri), username, password)
            {
                DefaultProjectId = pid,
            };

            return(new TeamCityGuiProvider(repository, svc));
        }
Example #8
0
        public IGuiProvider CreateGuiProvider(IRepository repository)
        {
            var section = repository.ConfigSection.GetSection("IssueTrackers").GetSection("TeamCity");

            var uri = section.GetValue<string>("ServiceUri");
            var username = Unmask(section.GetValue<string>("Username"));
            var password = Unmask(section.GetValue<string>("Password"));
            var pid = section.GetValue<string>("ProjectId");
            var svc = new TeamCityServiceContext(new Uri(uri), username, password)
            {
                DefaultProjectId = pid,
            };

            return new TeamCityGuiProvider(repository, svc);
        }
Example #9
0
 internal BuildTypesCollection(TeamCityServiceContext context)
     : base(context)
 {
 }
Example #10
0
 internal BuildType(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     _builds  = new BuildTypeBuildsCollection(this, Context.Builds);
     _project = Context.Projects.Lookup(TeamCityUtility.LoadString(node.Attributes["projectId"]), TeamCityUtility.LoadString(node.Attributes["projectName"]));
 }
Example #11
0
 internal BuildType(TeamCityServiceContext context, string id)
     : base(context, id)
 {
     _builds = new BuildTypeBuildsCollection(this, Context.Builds);
 }
Example #12
0
 protected NamedTeamCityObject(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     _name = TeamCityUtility.LoadString(node.Attributes[NameProperty.XmlNodeName]);
 }
Example #13
0
 internal Build(TeamCityServiceContext context, string id)
     : base(context, id)
 {
 }
Example #14
0
 internal BuildType(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     _builds = new BuildTypeBuildsCollection(this, Context.Builds);
     _project = Context.Projects.Lookup(TeamCityUtility.LoadString(node.Attributes["projectId"]), TeamCityUtility.LoadString(node.Attributes["projectName"]));
 }
Example #15
0
 public Project(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     BuildTypes = new ProjectBuildTypesCollection(this, context.BuildTypes);
 }
Example #16
0
File: Build.cs Project: Kuzq/gitter
 internal Build(TeamCityServiceContext context, string id)
     : base(context, id)
 {
 }
Example #17
0
 protected NamedTeamCityObject(TeamCityServiceContext context, string id)
     : base(context, id)
 {
 }
Example #18
0
 internal ProjectsCollection(TeamCityServiceContext context)
     : base(context)
 {
 }
Example #19
0
 protected NamedTeamCityObject(TeamCityServiceContext context, XmlNode node)
     : base(context, node)
 {
     _name = TeamCityUtility.LoadString(node.Attributes[NameProperty.XmlNodeName]);
 }
Example #20
0
 protected NamedTeamCityObject(TeamCityServiceContext context, string id, string name)
     : base(context, id)
 {
     _name = name;
 }
Example #21
0
 protected NamedTeamCityObject(TeamCityServiceContext context, string id)
     : base(context, id)
 {
 }
Example #22
0
 protected NamedTeamCityObject(TeamCityServiceContext context, string id, string name)
     : base(context, id)
 {
     _name = name;
 }
Example #23
0
 public Project(TeamCityServiceContext context, string id)
     : base(context, id)
 {
     BuildTypes = new ProjectBuildTypesCollection(this, context.BuildTypes);
 }
Example #24
0
 internal BuildType(TeamCityServiceContext context, string id)
     : base(context, id)
 {
     _builds = new BuildTypeBuildsCollection(this, Context.Builds);
 }