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