/// <summary> /// Performs execution of the command /// </summary> protected override void DoProcessRecord() { CurrentConnections.Set( CurrentConnections.Server, null ); }
/// <summary> /// Performs execution of the command /// </summary> protected override void DoProcessRecord() { CurrentConnections.Set( CurrentConnections.Server, CurrentConnections.Collection, CurrentConnections.Project, null ); }
/// <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); } }
/// <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); } }
/// <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); } }