IntelligenceX
Class

InMemoryToolAuthenticationProbeStore

IntelligenceX.Tools

Namespace
IntelligenceX.Tools
Assembly
IntelligenceX
Modifiers
sealed

Thread-safe in-memory probe store suitable for host-local execution.

Inheritance

  • object
  • InMemoryToolAuthenticationProbeStore

Constructors

public InMemoryToolAuthenticationProbeStore(int maxRecords = 1000, TimeSpan? maxRecordAge = null, Func<DateTimeOffset>? utcNowProvider = null) #

Initializes a new instance of the InMemoryToolAuthenticationProbeStore class.

Parameters

maxRecords int = 1000 optional
Maximum number of records retained in memory.
maxRecordAge System.TimeSpan? = null optional
Maximum age for retained records.
utcNowProvider System.Func<System.DateTimeOffset>? = null optional
Optional UTC clock provider used for retention checks.

Exceptions

  • ArgumentOutOfRangeException – Thrown when maxRecords or maxRecordAge is invalid.

Methods

public bool TryGet(string probeId, out ToolAuthenticationProbeRecord record) #

Looks up a probe record by id.

Parameters

probeId string required
Probe identifier.
record IntelligenceX.Tools.ToolAuthenticationProbeRecord required
Resolved record when found.

Returns

bool True when record exists.
public void Upsert(ToolAuthenticationProbeRecord record) #

Inserts or replaces a probe record.

Parameters

record IntelligenceX.Tools.ToolAuthenticationProbeRecord required
Probe record to persist.