Exemple #1
0
 private void ProvideServerConnection(TfsBlockServices Services)
 {
     if (this.ServerConnection != null)
     {
         Services.AddService(this.ServerConnection);
     }
 }
Exemple #2
0
        private void ProvideWorkSpace(TfsBlockServices Services)
        {
            if (this.ServerConnection == null)
            {
                this.ServerConnection = (TfsServerConnection)Services.GetService(typeof(TfsServerConnection));
            }

            if (this.WorkspaceName != null)
            {
                Services.AddService(this.WorkspaceHelper.GetWorkspaceByName(this.WorkspaceName, this.ServerConnection.SourceControl));
            }
        }
Exemple #3
0
        protected override void ExecuteTask()
        {
            TfsBlockServices Services = (TfsBlockServices)TfsBlockServices.GetInstance();

            if (this.Clean)
            {
                Services.Clear();
            }

            this.ProvideServerConnection(Services);

            this.ProvideWorkSpace(Services);

            this.Tasks.Execute();

            if (this.Clean)
            {
                Services.Clear();
            }
        }
Exemple #4
0
        private void ProvideWorkSpace(TfsBlockServices Services)
        {
            if (this.ServerConnection == null)
                this.ServerConnection = (TfsServerConnection)Services.GetService(typeof(TfsServerConnection));

            if (this.WorkspaceName != null)
                Services.AddService(this.WorkspaceHelper.GetWorkspaceByName(this.WorkspaceName, this.ServerConnection.SourceControl));
        }
Exemple #5
0
 private void ProvideServerConnection(TfsBlockServices Services)
 {
     if (this.ServerConnection != null)
         Services.AddService(this.ServerConnection);
 }