/// <summary> /// Initializes a new <c>TaskAgentSession</c> instance with the specified owner name and agent. /// </summary> /// <param name="ownerName">The name of the owner for this session. This should typically be the agent machine</param> /// <param name="agent">The target agent for the session</param> public TaskAgentSession( String ownerName, TaskAgentReference agent) { this.Agent = agent; this.OwnerName = ownerName; }
protected TaskAgentReference(TaskAgentReference referenceToBeCloned) { this.Id = referenceToBeCloned.Id; this.Name = referenceToBeCloned.Name; this.Version = referenceToBeCloned.Version; this.Enabled = referenceToBeCloned.Enabled; this.Status = referenceToBeCloned.Status; this.OSDescription = referenceToBeCloned.OSDescription; this.ProvisioningState = referenceToBeCloned.ProvisioningState; this.AccessPoint = referenceToBeCloned.AccessPoint; if (referenceToBeCloned.m_links != null) { m_links = referenceToBeCloned.m_links.Clone(); } }
internal TaskAgent(TaskAgentReference reference) : base(reference) { }