예제 #1
0
 protected override void OnExit(ExitEventArgs e)
 {
     // Get advisory report in console
     ApiCopManager.AddListener(new ConsoleApiCopListener());
     ApiCopManager.WriteResults();
     base.OnExit(e);
 }
예제 #2
0
        protected override void OnExit(ExitEventArgs e)
        {
            var apiCopListener = new ConsoleApiCopListener();

            ApiCopManager.AddListener(apiCopListener);
            ApiCopManager.WriteResults();
            base.OnExit(e);
        }
예제 #3
0
        protected override void OnExit(ExitEventArgs e)
        {
            // Get advisory report in console
            ApiCopManager.AddListener(new ConsoleApiCopListener());
            ApiCopManager.WriteResults();
            using (
                var writer =
                    new StreamWriter("Config.txt"))
                set.Save(writer.BaseStream, SerializationMode.Xml, _sc);

            base.OnExit(e);
        }
예제 #4
0
        /// <summary>
        ///   Raises the <see cref="E:System.Windows.Application.Exit" /> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.Windows.ExitEventArgs" /> that contains the event data.</param>
        protected override void OnExit(ExitEventArgs e)
        {
            //
            // API Cop output

#if DEBUG
            var apiCopListener = new ConsoleApiCopListener();
            ApiCopManager.AddListener(apiCopListener);
            ApiCopManager.WriteResults();
#endif

            base.OnExit(e);
        }