Example #1
0
        /// <summary>
        /// Updates the state of this entry.
        /// </summary>
        /// <param name="newState">The new state for this entry.</param>
        private void ChangeState(BuildRequestEntryState newState)
        {
            if (_state != newState)
            {
                _state = newState;

                BuildRequestEntryStateChangedDelegate stateEvent = OnStateChanged;

                if (stateEvent != null)
                {
                    stateEvent(this, newState);
                }
            }
        }
Example #2
0
        /// <summary>
        /// Updates the state of this entry.
        /// </summary>
        /// <param name="newState">The new state for this entry.</param>
        private void ChangeState(BuildRequestEntryState newState)
        {
            if (_state != newState)
            {
                _state = newState;

                BuildRequestEntryStateChangedDelegate stateEvent = OnStateChanged;

                if (stateEvent != null)
                {
                    stateEvent(this, newState);
                }
            }
        }
Example #3
0
 /// <summary>
 /// Called when a build request entry has a state change.  We should re-evaluate our requests when this happens.
 /// </summary>
 /// <param name="entry">The entry raising the event.</param>
 /// <param name="newState">The event's new state.</param>
 private void BuildRequestEntry_StateChanged(BuildRequestEntry entry, BuildRequestEntryState newState)
 {
     QueueAction(() => { EvaluateRequestStates(); }, isLastTask: false);
 }