<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="10.0.0-preview.2.25163.2" />

SynchronizedList<T>

sealed class SynchronizedList<T>
public int Count { get; }

public void Add(T item)

public bool AddIfNotExist(T item)

public void EnumWithAction(Action<T, object> action, object arg)

public void EnumWithExceptionNotification(Activity activity, Exception exception, ref TagList tags)

public void EnumWithFunc<TParent>(Function<T, TParent> func, ref ActivityCreationOptions data, ref ActivitySamplingResult samplingResult, ref ActivityCreationOptions dataWithContext)

public bool Remove(T item)