// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomationTool
{
///
/// Used to pass information to tasks about the currently running job.
///
public class JobContext
{
///
/// The current node name
///
public string CurrentNode { get; }
///
/// The command that is running the current job.
///
public BuildCommand OwnerCommand { get; }
///
/// Constructor
///
/// The command running the current job
public JobContext(BuildCommand InOwnerCommand) : this("Unknown", InOwnerCommand)
{
}
///
/// Constructor
///
/// The current node being executed
/// The command running the current job
public JobContext(string InCurrentNode, BuildCommand InOwnerCommand)
{
CurrentNode = InCurrentNode;
OwnerCommand = InOwnerCommand;
}
}
}