Exemple #1
0
 /// <summary>
 /// Performs execution of the command
 /// </summary>
 protected override void DoProcessRecord()
 {
     CurrentConnections.Set(
         CurrentConnections.Server,
         null
         );
 }
Exemple #2
0
 /// <summary>
 /// Performs execution of the command
 /// </summary>
 protected override void DoProcessRecord()
 {
     CurrentConnections.Set(
         CurrentConnections.Server,
         CurrentConnections.Collection,
         CurrentConnections.Project,
         null
         );
 }
Exemple #3
0
        /// <inheritdoc/>
        protected override void DoProcessRecord()
        {
            var srv = this.GetServer();

            srv.Connect();

            CurrentConnections.Set(srv);

            this.Log($"Connected to {srv.Uri}, ID {srv.ServerId}, as {srv.AuthorizedIdentity.DisplayName}");

            if (Passthru)
            {
                WriteObject(srv);
            }
        }
Exemple #4
0
        /// <summary>
        /// Performs execution of the command
        /// </summary>
        protected override void DoProcessRecord()
        {
            var tpc = this.GetCollection();

            tpc.Connect();

            var srv = tpc.ConfigurationServer;

            CurrentConnections.Set(srv, tpc);

            this.Log($"Connected to {tpc.Uri}, ID {tpc.ServerId}, as '{tpc.AuthorizedIdentity.DisplayName}'");

            if (Passthru)
            {
                WriteObject(tpc);
            }
        }
Exemple #5
0
        /// <summary>
        /// Performs execution of the command
        /// </summary>
        protected override void DoProcessRecord()
        {
            var(tpc, tp, t) = this.GetCollectionProjectAndTeam();

            CurrentConnections.Set(tpc.ConfigurationServer, tpc, tp, t);

            // TODO:
            //this.Log($"Adding '{tp.Name} to the MRU list");
            //_SetMru "Server" - Value(srv.Uri)
            //_SetMru "Collection" - Value(tpc.Uri)
            //_SetMru "Project" - Value(tp.Name)

            this.Log($"Connected to '{t.Name}'");

            if (Passthru)
            {
                WriteObject(tp);
            }
        }