コード例 #1
0
        //�Public�Methods�(4)�

        public override void CommitRevision(Revision revision)
        {
            //encrypt login and password
            string loginName = "";
            string pass      = "";

            getloginAndPass(UserId, ref loginName, ref pass);

            string _url = getWSUrl(this.Url);

            RepositoryWebservice repo = new RepositoryWebservice(_url);

            foreach (var i in revision.GetAllRevisionItems().Values)
            {
                repo.CommitRevisionitem(revision.Name, i, loginName, pass);

                RevisionFileEventArgs e = new RevisionFileEventArgs();
                e.Name = i.Name;

                OnRevisionItemCommitted(e);
            }

            foreach (var i in revision.GetAllResources().Values)
            {
                repo.CommitResourceitem(revision.Name, i, loginName, pass);

                RevisionFileEventArgs e = new RevisionFileEventArgs();
                e.Name = i.Name;
                OnRevisionResourceCommitted(e);
            }

            foreach (var i in revision.GetAllVirtualResources().Values)
            {
                repo.CommitResourceitem(revision.Name, i, loginName, pass);

                RevisionFileEventArgs e = new RevisionFileEventArgs();
                e.Name = i.Name;
                OnRevisionResourceCommitted(e);
            }
            repo.Dispose();
        }
コード例 #2
0
        //�Public�Methods�(4)
        public override void CommitRevision(Revision revision)
        {
            //encrypt login and password
            string loginName = "";
            string pass = "";
            getloginAndPass(UserId, ref loginName, ref pass);

            string _url = getWSUrl(this.Url);

            RepositoryWebservice repo = new RepositoryWebservice(_url);

            foreach (var i in revision.GetAllRevisionItems().Values)
            {
                repo.CommitRevisionitem(revision.Name, i, loginName, pass);

                RevisionFileEventArgs e = new RevisionFileEventArgs();
                e.Name = i.Name;

                OnRevisionItemCommitted(e);
            }

            foreach (var i in revision.GetAllResources().Values)
            {
                repo.CommitResourceitem(revision.Name, i, loginName, pass);

                RevisionFileEventArgs e = new RevisionFileEventArgs();
                e.Name = i.Name;
                OnRevisionResourceCommitted(e);
            }

            foreach (var i in revision.GetAllVirtualResources().Values)
            {
                repo.CommitResourceitem(revision.Name, i, loginName, pass);

                RevisionFileEventArgs e = new RevisionFileEventArgs();
                e.Name = i.Name;
                OnRevisionResourceCommitted(e);
            }
            repo.Dispose();
        }