DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="4.1.0-beta3000" />

 ExecutionSessionHelper

public static class ExecutionSessionHelper
public static void ThrowIfNoNetworkMode()

Throw exception in no-network mode. This helper method can be used to display a warning on a node that needs to be prevented from running when no-network mode is enabled.