Пример #1
0
 public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     //Register for the ProjectStarted, TargetStarted, and ProjectFinished events
     eventSource.ProjectStarted  += new ProjectStartedEventHandler(eventSource_ProjectStarted);
     eventSource.TargetStarted   += new TargetStartedEventHandler(eventSource_TargetStarted);
     eventSource.ProjectFinished += new ProjectFinishedEventHandler(eventSource_ProjectFinished);
 }
Пример #2
0
 public void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     //eventSource.AnyEventRaised += eventSource_AnyEventRaised;
     eventSource.ErrorRaised   += eventSource_ErrorRaised;
     eventSource.MessageRaised += eventSource_MessageRaised;
     eventSource.BuildFinished += eventSource_BuildFinished;
 }
        public void Initialize(MSB.Framework.IEventSource eventSource)
        {
            Debug.Assert(_eventSource == null);

            _eventSource                = eventSource;
            _eventSource.ErrorRaised   += OnErrorRaised;
            _eventSource.WarningRaised += OnWarningRaised;
        }
Пример #4
0
 public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     eventSource.ProjectStarted  += eventSource_ProjectStarted;
     eventSource.TaskStarted     += new Microsoft.Build.Framework.TaskStartedEventHandler(eventSource_TaskStarted);
     eventSource.MessageRaised   += new Microsoft.Build.Framework.BuildMessageEventHandler(eventSource_MessageRaised);
     eventSource.WarningRaised   += new Microsoft.Build.Framework.BuildWarningEventHandler(eventSource_WarningRaised);
     eventSource.ErrorRaised     += new Microsoft.Build.Framework.BuildErrorEventHandler(eventSource_ErrorRaised);
     eventSource.ProjectFinished += new Microsoft.Build.Framework.ProjectFinishedEventHandler(eventSource_ProjectFinished);
 }
Пример #5
0
 public void Shutdown()
 {
     if (_eventSource != null)
     {
         _eventSource.ErrorRaised   -= EventSource_ErrorRaised;
         _eventSource.WarningRaised -= EventSource_WarningRaised;
         _eventSource = null;
     }
 }
Пример #6
0
 public void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     eventSource.ErrorRaised   += OnError;
     eventSource.WarningRaised += OnWarning;
     _callOnShutdown.Add(() =>
     {
         eventSource.ErrorRaised   -= OnError;
         eventSource.WarningRaised -= OnWarning;
     });
 }
Пример #7
0
        public void Shutdown()
        {
            if (_eventSource != null)
            {
                _eventSource.ErrorRaised   -= OnErrorRaised;
                _eventSource.WarningRaised -= OnWarningRaised;

                _eventSource = null;

                _projectFilePath = null;
                _log             = null;
            }
        }
Пример #8
0
 public void Initialize(Microsoft.Build.Framework.IEventSource eventSource, int maxNodeCount)
 {
 }
Пример #9
0
 public void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
 }
Пример #10
0
 public abstract void Initialize(Microsoft.Build.Framework.IEventSource eventSource);
 public void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     eventSource.ErrorRaised   += eventSource_ErrorRaised;
     eventSource.MessageRaised += eventSource_MessageRaised;
     eventSource.WarningRaised += eventSource_WarningRaised;
 }
Пример #12
0
 public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource, int nodeCount)
 {
 }
 public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     eventSource.ErrorRaised   += new Microsoft.Build.Framework.BuildErrorEventHandler(eventSource_ErrorRaised);
     eventSource.WarningRaised += new Microsoft.Build.Framework.BuildWarningEventHandler(eventSource_WarningRaised);
     eventSource.BuildFinished += new Microsoft.Build.Framework.BuildFinishedEventHandler(eventSource_BuildFinished);
 }
Пример #14
0
 /// <summary>
 /// When overridden in a derived class, subscribes the logger to specific events.
 /// </summary>
 /// <param name="eventSource">The available events that a logger can subscribe to.</param>
 public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     eventSource.MessageRaised += eventSource_MessageRaised;
 }
Пример #15
0
 public void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     _eventSource              = eventSource;
     _eventSource.ErrorRaised += EventSource_ErrorRaised;
     //_eventSource.WarningRaised += EventSource_WarningRaised;
 }
Пример #16
0
 public override void Initialize(Microsoft.Build.Framework.IEventSource eventSource)
 {
     eventSource.ErrorRaised   += OnError;
     eventSource.WarningRaised += OnWarning;
 }
Пример #17
0
 public void Initialize(MSB.Framework.IEventSource eventSource)
 {
     _eventSource              = eventSource;
     _eventSource.ErrorRaised += OnErrorRaised;
 }