Class
InMemoryToolAuthenticationProbeStore
IntelligenceX.Tools
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
- Maximum number of records retained in memory.
- maxRecordAge System.TimeSpan? = null
- Maximum age for retained records.
- utcNowProvider System.Func<System.DateTimeOffset>? = null
- 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
- Probe identifier.
- record IntelligenceX.Tools.ToolAuthenticationProbeRecord
- 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
- Probe record to persist.