コード例 #1
0
        /// <summary>
        /// Raise one of the events that is appropriate for the type of the BuildEventArgs
        /// </summary>
        public void Dispatch(BuildEventArgs buildEvent)
        {
            if (buildEvent is BuildMessageEventArgs)
            {
                MessageRaised?.Invoke(null, (BuildMessageEventArgs)buildEvent);
            }
            else if (buildEvent is TaskStartedEventArgs)
            {
                TaskStarted?.Invoke(null, (TaskStartedEventArgs)buildEvent);
            }
            else if (buildEvent is TaskFinishedEventArgs)
            {
                TaskFinished?.Invoke(null, (TaskFinishedEventArgs)buildEvent);
            }
            else if (buildEvent is TargetStartedEventArgs)
            {
                TargetStarted?.Invoke(null, (TargetStartedEventArgs)buildEvent);
            }
            else if (buildEvent is TargetFinishedEventArgs)
            {
                TargetFinished?.Invoke(null, (TargetFinishedEventArgs)buildEvent);
            }
            else if (buildEvent is ProjectStartedEventArgs)
            {
                ProjectStarted?.Invoke(null, (ProjectStartedEventArgs)buildEvent);
            }
            else if (buildEvent is ProjectFinishedEventArgs)
            {
                ProjectFinished?.Invoke(null, (ProjectFinishedEventArgs)buildEvent);
            }
            else if (buildEvent is BuildStartedEventArgs)
            {
                BuildStarted?.Invoke(null, (BuildStartedEventArgs)buildEvent);
            }
            else if (buildEvent is BuildFinishedEventArgs)
            {
                BuildFinished?.Invoke(null, (BuildFinishedEventArgs)buildEvent);
            }
            else if (buildEvent is CustomBuildEventArgs)
            {
                CustomEventRaised?.Invoke(null, (CustomBuildEventArgs)buildEvent);
            }
            else if (buildEvent is BuildStatusEventArgs)
            {
                StatusEventRaised?.Invoke(null, (BuildStatusEventArgs)buildEvent);
            }
            else if (buildEvent is BuildWarningEventArgs)
            {
                WarningRaised?.Invoke(null, (BuildWarningEventArgs)buildEvent);
            }
            else if (buildEvent is BuildErrorEventArgs)
            {
                ErrorRaised?.Invoke(null, (BuildErrorEventArgs)buildEvent);
            }

            AnyEventRaised?.Invoke(null, buildEvent);
        }
コード例 #2
0
        private void _session_TargetStarted(object sender, EventArgs e)
        {
            if (_lastDocument != null)
            {
                _lastDocument.ClearDebugHighlight();
                _lastDocument = null;
            }

            TargetStarted?.Invoke(this, e);
        }
コード例 #3
0
ファイル: DebugManager2.cs プロジェクト: zanjs/AvalonStudio
        private void _session_TargetStarted(object sender, EventArgs e)
        {
            if (_lastDocument != null)
            {
                Dispatcher.UIThread.InvokeAsync(() =>
                {
                    _lastDocument.ClearDebugHighlight();
                    _lastDocument = null;
                });
            }

            TargetStarted?.Invoke(this, e);
        }
コード例 #4
0
        private void InvokeEvent(DBGUIExtCmdInfoBase Command)
        {
            switch (Command)
            {
            case DBGUIExtCmdInfoStarted StartEvent:
                TargetStarted?.Invoke(this, StartEvent.TargetID);
                break;

            case DBGUIExtCmdInfoQuit QuitEvent:
                TargetQuit?.Invoke(this, QuitEvent.TargetID);
                break;

            case DBGUIExtCmdInfoMeasure MeasureEvent:
                MeasureProcessing?.Invoke(this, MeasureEvent.Measure);
                break;
            }
        }
コード例 #5
0
 // ReSharper disable once UnusedMember.Local
 private void OnTargetStarted(TargetStartedEventArgs e)
 {
     TargetStarted?.Invoke(this, e);
 }
コード例 #6
0
ファイル: CrossDomainLogger.cs プロジェクト: jmp75/PowerBuild
 private void EventSourceOnTargetStarted(object sender, TargetStartedEventArgs e)
 {
     TargetStarted?.Invoke(sender, e);
 }