AgentContext Class

Definition

Encapsulates the context of the agent environment.

public ref class AgentContext
[System.Serializable]
public class AgentContext
[<System.Serializable>]
type AgentContext = class
Public Class AgentContext
Inheritance
AgentContext
Attributes

Constructors

Name Description
AgentContext(String, String, String, Boolean)

Initializes a new instance of the AgentContext class by using the provided parameters.

Properties

Name Description
ConnectionString

Gets the machine name of the agent and the port on which it listens for incoming connections.

DisplayName

Gets or sets the display name of the agent, which is unique throughout an environment.

IsRemote

Gets a value that indicates whether this agent context is executed remotely.

Name

Gets or sets the fully qualified name of the agent as registered with the test controller.

Methods

Name Description
CreateForLocalAgent()

Returns a new AgentContext for a locally hosted agent.

Applies to