IntelligenceX

API Reference

Class

InMemoryToolAuthenticationProbeStore

Namespace IntelligenceX.Tools
Assembly IntelligenceX
Modifiers sealed

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

Inheritance

  • Object
  • InMemoryToolAuthenticationProbeStore

Constructors

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

Initializes a new instance of the InMemoryToolAuthenticationProbeStore class.

Parameters

maxRecords System.Int32 = 1000 optionalposition: 0
Maximum number of records retained in memory.
maxRecordAge System.TimeSpan? = null optionalposition: 1
Maximum age for retained records.
utcNowProvider System.Func<System.DateTimeOffset>? = null optionalposition: 2
Optional UTC clock provider used for retention checks.

Exceptions

  • ArgumentOutOfRangeException – Thrown when maxRecords or maxRecordAge is invalid.

Methods

public Boolean TryGet(String probeId, out ToolAuthenticationProbeRecord record) #
Returns: Boolean

Looks up a probe record by id.

Parameters

probeId System.String requiredposition: 0
Probe identifier.
record IntelligenceX.Tools.ToolAuthenticationProbeRecord requiredposition: 1
Resolved record when found.

Returns

True when record exists.

public Void Upsert(ToolAuthenticationProbeRecord record) #
Returns: Void

Inserts or replaces a probe record.

Parameters

record IntelligenceX.Tools.ToolAuthenticationProbeRecord requiredposition: 0
Probe record to persist.