Skip to content

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.

public int Count { get; }

Implements Count

Property Value

System.Int32

AgentOutputCollector<T>.Items Property

Gets all collected records in insertion order.

public System.Collections.Generic.IReadOnlyList<T> Items { get; }

Implements Items

Property Value

System.Collections.Generic.IReadOnlyList<T>

Methods

AgentOutputCollector<T>.Add(T) Method

Adds a record to the collection. Thread-safe.

public void Add(T item);

Parameters

item T

Implements Add(T)