API Reference
Class
AgentRunner
Coordinates agent collectors, buffering, and submission to the monitoring service.
Inheritance
- Object
- AgentRunner
Constructors
public AgentRunner(AgentConfig config, String workingDirectory, Action<String> log = null) #Creates a new agent runner.
Parameters
- config ComputerX.Agent.AgentConfig
- workingDirectory System.String
- log System.Action{System.String} = null
Methods
public async Task<AgentSendResult> CollectAndSendAsync(CancellationToken cancellationToken) #Returns:
Task<AgentSendResult>Performs a single collection cycle and sends the payload.
Parameters
- cancellationToken System.Threading.CancellationToken
public async Task RunAsync(CancellationToken cancellationToken) #Returns:
TaskRuns the agent loop until cancellation.
Parameters
- cancellationToken System.Threading.CancellationToken
public Task<AgentSendResult> RunOnceAsync(CancellationToken cancellationToken) #Returns:
Task<AgentSendResult>Runs a single collection and send cycle.
Parameters
- cancellationToken System.Threading.CancellationToken
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object