Skip to content

DiagnosticEventCollector

class

Namespace: Orleans.TestingHost.Diagnostics

A test utility for collecting and waiting on diagnostic events. Subscribes to System.Diagnostics.DiagnosticListener.AllListeners and captures events from listeners matching specified patterns.
public sealed class DiagnosticEventCollector : IDisposable, IObserver<KeyValuePair<string, object?>>, IObserver<DiagnosticListener>

Remarks

Use this class to wait for specific Orleans events in tests without relying on Task.Delay or Thread.Sleep.

Constructors

Properties

  • Events Gets all captured diagnostic events.

Methods