API Reference
Class
AgentStatusWriter
Writes agent status snapshots to disk on a fixed cadence.
Inheritance
- Object
- AgentStatusWriter
Constructors
public AgentStatusWriter(String path, TimeSpan interval, JsonSerializerOptions jsonOptions) #Creates a status writer.
Parameters
- path System.String
- interval System.TimeSpan
- jsonOptions System.Text.Json.JsonSerializerOptions
Methods
public async Task<Boolean> TryWriteAsync(AgentStatusSnapshot snapshot, Boolean force, CancellationToken cancellationToken) #Returns:
Task<Boolean>Writes a snapshot when the interval elapses (or force=true).
Parameters
- snapshot ComputerX.Agent.AgentStatusSnapshot
- force System.Boolean
- cancellationToken System.Threading.CancellationToken
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object