예제 #1
0
 // To be called by the "Query" Debugging Check for UpdateData
 private void ReportDebugging(bool isDebugging)
 {
     if (isDebugging)
     {
         ClientAppInsights.TelemetryClient.TrackEvent(
             "Debugger Detected when Querying Sensitive Data",
             new Dictionary <string, string> {
             { "Query", "Email Addresses" }
         });
         ClientAppInsights.Shutdown();
     }
 }
예제 #2
0
 /// <summary>
 /// Event handler when the window is closing.
 /// Flushes app insights data.
 /// </summary>
 /// <param name="sender">the sender of this event</param>
 /// <param name="e">the event arguments of this event</param>
 private void OnClosing(object sender, CancelEventArgs e)
 {
     ClientAppInsights.Shutdown();
 }