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

            ApiCopManager.AddListener(apiCopListener);
            ApiCopManager.WriteResults();
            base.OnExit(e);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }