/// <summary> /// Reports an audit create session event. /// </summary> private void ReportAuditCreateSessionEvent(ServerSystemContext context) { // raise an audit event. AuditCreateSessionEventState e = new AuditCreateSessionEventState(null); TranslationInfo message = new TranslationInfo( "AuditCreateSessionEvent", "en-US", "Session {0} created.", m_sessionName); InitializeSessionAuditEvent(context, e, message); e.SetChildValue(context, BrowseNames.ClientCertificate, m_securityDiagnostics.ClientCertificate, false); e.SetChildValue(context, BrowseNames.SecureChannelId, m_secureChannelId, false); m_server.ReportEvent(context, e); }
/// <summary> /// Reports an audit create session event. /// </summary> private void ReportAuditCreateSessionEvent(ServerSystemContext context) { // raise an audit event. AuditCreateSessionEventState e = new AuditCreateSessionEventState(null); TranslationInfo message = new TranslationInfo( "AuditCreateSessionEvent", "en-US", "Session {0} created.", m_sessionName); InitializeSessionAuditEvent(context, e, message); e.SetChildValue(context, BrowseNames.ClientCertificate, m_securityDiagnostics.ClientCertificate, false); e.SetChildValue(context, BrowseNames.SecureChannelId, m_secureChannelId, false); m_server.ReportEvent(context, e); }