Esempio n. 1
0
        public void ExecuteFinishedHandler(BuildStatusEventArgs finished_args)
        {
            if (!StartHandlerHasExecuted)
            {
                return;
            }

            if (EventArgs is ProjectStartedEventArgs && finished_args is ProjectFinishedEventArgs)
            {
                ConsoleLogger.ProjectFinishedHandler(null, (ProjectFinishedEventArgs)finished_args);
            }
            else if (EventArgs is TargetStartedEventArgs && finished_args is TargetFinishedEventArgs)
            {
                ConsoleLogger.TargetFinishedHandler(null, (TargetFinishedEventArgs)finished_args);
            }
            else if (EventArgs is TaskStartedEventArgs && finished_args is TaskFinishedEventArgs)
            {
                ConsoleLogger.TaskFinishedHandler(null, (TaskFinishedEventArgs)finished_args);
            }
        }