File: Engine\ExecutionContext.cs
Web Access
Project: ..\..\..\src\Deprecated\Engine\Microsoft.Build.Engine.csproj (Microsoft.Build.Engine)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
// THE ASSEMBLY BUILT FROM THIS SOURCE FILE HAS BEEN DEPRECATED FOR YEARS. IT IS BUILT ONLY TO PROVIDE
// BACKWARD COMPATIBILITY FOR API USERS WHO HAVE NOT YET MOVED TO UPDATED APIS. PLEASE DO NOT SEND PULL
// REQUESTS THAT CHANGE THIS FILE WITHOUT FIRST CHECKING WITH THE MAINTAINERS THAT THE FIX IS REQUIRED.
 
using Microsoft.Build.Framework;
 
namespace Microsoft.Build.BuildEngine
{
    /// <summary>
    /// Base class for data container shared between the Engine data domain and the TaskExecutionModule (TEM)
    /// data domain
    /// </summary>
    internal class ExecutionContext
    {
        #region Constructors
        /// <summary>
        /// Default constructor
        /// </summary>
        internal ExecutionContext(int handleId, int nodeIndex, BuildEventContext buildEventContext)
        {
            this.handleId = handleId;
            this.nodeIndex = nodeIndex;
            this.buildEventContext = buildEventContext;
        }
        #endregion
 
        #region Properties
 
        /// <summary>
        /// The token id corresponding to this context
        /// </summary>
        internal int HandleId
        {
            get
            {
                return this.handleId;
            }
        }
 
        /// <summary>
        /// The node on which this context is being executed
        /// </summary>
        internal int NodeIndex
        {
            get
            {
                return this.nodeIndex;
            }
        }
 
        /// <summary>
        /// The logging context
        /// </summary>
        internal BuildEventContext BuildEventContext
        {
            get
            {
                return this.buildEventContext;
            }
        }
 
        #endregion
 
        #region Data
        // The handle for the context
        private int handleId;
        // The node of execution
        private int nodeIndex;
        // The logging context
        private BuildEventContext buildEventContext;
        #endregion
    }
}