<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Metrics.ConcurrentDatastructures.GrowingCollection<T>

A very fast, lock free, unordered collection to which items can be added, but never removed.

An enumerator implementation for a GrowingCollection<T>. The enumerator is resilient to concurrent additions to the collection. No particular element order is guaranteed.

public int Count { get; }

Gets the current number of items in the collection.

Creates a new GrowingCollection.

public void Add(T item)

Adds an item to the collection.

Gets an enumerator over this colletion. No particular element order is guaranteed. The enumerator is resilient to concurrent additions to the collection.