Skip to content

Commit

Permalink
Add PreferenceFilePath to ExecutionSession
Browse files Browse the repository at this point in the history
  • Loading branch information
twastvedt committed Sep 23, 2024
1 parent 702c7f8 commit 2c949de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/DynamoCore/Configuration/ExecutionSession.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using Dynamo.Interfaces;
Expand Down Expand Up @@ -26,6 +26,7 @@ public ExecutionSession(Scheduler.UpdateGraphAsyncTask updateTask, DynamoModel m
parameters[ParameterKeys.LastExecutionDuration] = new TimeSpan(updateTask.ExecutionEndTime.TickCount - updateTask.ExecutionStartTime.TickCount);
parameters[ParameterKeys.PackagePaths] = pathManager.PackagesDirectories;
parameters[ParameterKeys.Logger] = model.Logger;
parameters[ParameterKeys.PreferenceFilePath] = pathManager.PreferenceFilePath;
}

/// <summary>
Expand Down
6 changes: 5 additions & 1 deletion src/NodeServices/ExecutionSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public class ParameterKeys
/// The return value is an ILogger
/// </summary>
public static readonly string Logger = nameof(Logger);


/// <summary>
/// The path to the preference file that is being used by Dynamo.
/// </summary>
public static readonly string PreferenceFilePath = nameof(PreferenceFilePath);
}
}

0 comments on commit 2c949de

Please sign in to comment.