protected override void OnExit(ExitEventArgs e) { var apiCopListener = new ConsoleApiCopListener(); ApiCopManager.AddListener(apiCopListener); ApiCopManager.WriteResults(); base.OnExit(e); }
/// <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); }