Esempio n. 1
0
 public override void Dispose()
 {
     if (outputProgressMonitor != null)
     {
         outputProgressMonitor.Dispose();
         outputProgressMonitor = null;
     }
     base.Dispose();
 }
Esempio n. 2
0
 protected override void OnDispose(bool disposing)
 {
     if (disposing)
     {
         if (outputProgressMonitor != null)
         {
             outputProgressMonitor.Dispose();
             outputProgressMonitor = null;
         }
     }
     base.OnDispose(disposing);
 }
Esempio n. 3
0
        public override void Dispose()
        {
            consoleMonitorReg.Dispose();
            statusMonitorReg.Dispose();

            foreach (var m in SuccessMessages)
            {
                consoleMonitor.ReportSuccess(m);
            }

            // Do not report warnings if there are errors otherwise the warnings will
            // appear at the end of the Package Console and hide the error which
            // should be the last line of text visible to the user.
            if (Errors.Length == 0)
            {
                ReportAllWarningsButLastToConsole();
            }

            ReportAllErrorsButLastToConsole();

            consoleMonitor.Dispose();

            base.Dispose();
        }