File: Coordinator\Constants.cs
Web Access
Project: src\msbuild\src\Framework\Microsoft.Build.Framework.csproj (Microsoft.Build.Framework)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Microsoft.Build.Framework.Coordinator;

/// <summary>
///  Constants for the build coordinator, including environment variable names
///  used for configuration.
/// </summary>
internal static class Constants
{
    /// <summary>
    ///  Name of environment variable that overrides coordinator heartbeat interval in milliseconds.
    /// </summary>
    public const string HeartbeatIntervalEnvVarName = "MSBUILDCOORDINATORHEARTBEAT";

    /// <summary>
    ///  Name of environment variable that overrides coordinator total node budget.
    /// </summary>
    public const string NodeBudgetEnvVarName = "MSBUILDCOORDINATORNODEBUDGET";

    /// <summary>
    ///  Name of environment variable that overrides coordinator auto-shutdown timeout in milliseconds.
    /// </summary>
    public const string ShutdownTimeoutEnvVarName = "MSBUILDCOORDINATORSHUTDOWNTIMEOUT";

    /// <summary>
    ///  Name of environment variable that overrides coordinator pipe name.
    /// </summary>
    public const string PipeNameEnvVarName = "MSBUILDCOORDINATORPIPENAME";
}