public void NotifyItemAudited(AuditEventArgs args) { CallbackNotifyAuditItem = true; }
/// <summary> /// Event handler for the P5 email engine object. This will forward the audit to the client type /// via the callback /// </summary> /// <param name="sender">unused</param> /// <param name="e"></param> private void OnAuditMail( AuditEventArgs e ) { if (m_continue) { m_traceClient.NotifyItemAudited(e); } }
/// <summary> /// Event handler for the P5 email engine object. This will forward the audit to the client type /// via the callback /// </summary> /// <param name="sender">unused</param> /// <param name="e"></param> private void OnAuditMail( object sender, AuditEventArgs e ) { m_traceClient.NotifyItemAudited(e); }
public void NotifyItemAudited(AuditEventArgs args) { try { if (args != null) { HandleAuditEvent(args); } else { BaseView.CurrentScan.ItemsSkipped++; } Invoke(new ParameterlessDelegate(StepProgress)); BaseView.CurrentScan.ItemsScanned++; UpdateSummaryResults(); } catch (ObjectDisposedException) { // Ignore it as we are closing } }
private static void HandleAuditEvent(AuditEventArgs args) { System.Diagnostics.Trace.WriteLine("Audit Event Fired - " + DateTime.Now.ToUniversalTime(), "MainForm.HandleAuditEvent"); Reports.MailMessage.Message msg = BaseView.CurrentScan.Messages.Add(args.Message); if (msg != null) UpdatePolicySummary(msg); }
public virtual void NotifyItemAudited(AuditEventArgs args) { }