AgentOutputCollector T
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Collectors¶
AgentOutputCollector<T> Class¶
Default thread-safe implementation of IAgentOutputCollector<T> backed by a System.Collections.Concurrent.ConcurrentQueue<>.
public sealed class AgentOutputCollector<T> : NexusLabs.Needlr.AgentFramework.Collectors.IAgentOutputCollector<T>
Type parameters¶
T
Inheritance System.Object 🡒 AgentOutputCollector\<T>
Implements NexusLabs.Needlr.AgentFramework.Collectors.IAgentOutputCollector<T>
Properties¶
AgentOutputCollector<T>.Count Property¶
Gets the number of collected records.
Implements Count
Property Value¶
AgentOutputCollector<T>.Items Property¶
Gets all collected records in insertion order.
Implements Items
Property Value¶
System.Collections.Generic.IReadOnlyList<T>
Methods¶
AgentOutputCollector<T>.Add(T) Method¶
Adds a record to the collection. Thread-safe.
Parameters¶
item T
Implements Add(T)