Пример #1
0
 /// <summary>
 /// Performs execution of the command
 /// </summary>
 protected override void DoProcessRecord()
 {
     CurrentConnections.Set(
         CurrentConnections.Server,
         null
         );
 }
Пример #2
0
 /// <summary>
 /// Performs execution of the command
 /// </summary>
 protected override void DoProcessRecord()
 {
     CurrentConnections.Set(
         CurrentConnections.Server,
         CurrentConnections.Collection,
         CurrentConnections.Project,
         null
         );
 }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
            }
        }