Files
UnrealEngineUWP/Engine/Source/Programs/AutomationTool/BuildGraph/JobContext.cs
ben marsh 4d9ed7e417 EpicGames.BuildGraph: Apply standard naming conventions to BuildGraph.Automation.
[CL 33835640 by ben marsh in ue5-main branch]
2024-05-22 13:17:22 -04:00

42 lines
1.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
#nullable enable
namespace AutomationTool
{
/// <summary>
/// Used to pass information to tasks about the currently running job.
/// </summary>
public class JobContext
{
/// <summary>
/// The current node name
/// </summary>
public string CurrentNode { get; }
/// <summary>
/// The command that is running the current job.
/// </summary>
public BuildCommand OwnerCommand { get; }
/// <summary>
/// Constructor
/// </summary>
/// <param name="inOwnerCommand">The command running the current job</param>
public JobContext(BuildCommand inOwnerCommand) : this("Unknown", inOwnerCommand)
{
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="inCurrentNode">The current node being executed</param>
/// <param name="inOwnerCommand">The command running the current job</param>
public JobContext(string inCurrentNode, BuildCommand inOwnerCommand)
{
CurrentNode = inCurrentNode;
OwnerCommand = inOwnerCommand;
}
}
}