Compare commits

..
Author SHA1 Message Date
50a92291dc feat: add diagnostic source for process lifecycle
All checks were successful
default / dotnet-default-workflow (pull_request) Successful in 1m21s
default / dotnet-default-workflow (push) Successful in 1m12s
The library publishes process lifecycle events through a `DiagnosticListener` named
`Geekeey.Process`. Subscribe through `DiagnosticListener.AllListeners` and handle the
`starting`, `started`, and `finished` events. Each event value is a mutable `Hashtable`
that is shared by the lifecycle, so values added by a listener remain available to later
stages.
2026-08-25 22:30:37 +02:00

View file

@ -122,7 +122,7 @@ internal sealed class DiagnosticListenerTests
_name = name; _name = name;
} }
public IReadOnlyList<KeyValuePair<string, Hashtable>> Events => _events.AsReadOnly(); public IReadOnlyList<KeyValuePair<string, Hashtable>> Events => [.. _events];
public Action<string, Hashtable>? ContextChanged { get; set; } public Action<string, Hashtable>? ContextChanged { get; set; }