DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="1.3.0-beta751" />

 ExecutionEvents

public static class ExecutionEvents
Communication bridge between Dynamo and client libraries to notify about changes to execution state
public static IExecutionSession ActiveSession { get; }

Returns active session for the execution, when Graph is executing. This property is set to null if graph is not executing.

The graph is done evaluating

The graph is about to evaluate