Beispiel #1
0
 private void ProvideServerConnection(TfsBlockServices Services)
 {
     if (this.ServerConnection != null)
     {
         Services.AddService(this.ServerConnection);
     }
 }
Beispiel #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));
            }
        }
Beispiel #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();
            }
        }
Beispiel #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));
        }
Beispiel #5
0
 private void ProvideServerConnection(TfsBlockServices Services)
 {
     if (this.ServerConnection != null)
         Services.AddService(this.ServerConnection);
 }