Exemplo n.º 1
0
        protected override void OnExit(ExitEventArgs e)
        {
            var apiCopListener = new ConsoleApiCopListener();

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