DynamoVisualProgramming.DynamoServices by Autodesk

<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="2.11.1.4675" />

 IExecutionSession

public interface IExecutionSession
Represents a session object for current execution.
string CurrentWorkspacePath { get; }

File path for the current workspace in execution. Could be null or empty string if workspace is not yet saved.

Returns list of session parameter keys available in the session.

object GetParameterValue(string parameter)

Returns session parameter value for the given parameter name.

bool ResolveFilePath(ref string filepath)

A helper method to resolve the given file path. The given file path will be resolved by searching into the current workspace, core and host application installation folders etc.