public ProjectFullKey GetFullProjectKey(BuildEventContext e)
        {
            ProjectStartedEventMinimumFields eventMinimumFields = null;

            if (e != null)
            {
                eventMinimumFields = _buildEventManager.GetProjectStartedEvent(e);
            }

            if (eventMinimumFields == null)
            {
                return(new ProjectFullKey(0, 0));
            }

            return(new ProjectFullKey(eventMinimumFields.ProjectKey, eventMinimumFields.EntryPointKey));
        }
 public ProjectStartedEventMinimumFields(
     int projectKey,
     int entryPointKey,
     ProjectStartedEventArgs startedEvent,
     ProjectStartedEventMinimumFields parentProjectStartedEvent,
     bool requireTimeStamp)
 {
     TargetNames = startedEvent.TargetNames;
     ProjectFile = startedEvent.ProjectFile;
     ShowProjectFinishedEvent = false;
     ErrorInProject           = false;
     ProjectId = startedEvent.ProjectId;
     ProjectBuildEventContext  = startedEvent.BuildEventContext;
     ParentProjectStartedEvent = parentProjectStartedEvent;
     _projectFullKey           = new ProjectFullKey(projectKey, entryPointKey);
     if (requireTimeStamp)
     {
         TimeStamp = startedEvent.Timestamp;
     }
 }