Opc.Ua.Server.Session.ReportAuditActivateSessionEvent C# (CSharp) Method

ReportAuditActivateSessionEvent() private method

Reports an audit activate session event.
private ReportAuditActivateSessionEvent ( ServerSystemContext context ) : void
context ServerSystemContext
return void
        private void ReportAuditActivateSessionEvent(ServerSystemContext context)
        {
            AuditActivateSessionEventState e = new AuditActivateSessionEventState(null);
            
            TranslationInfo message = new TranslationInfo(
                "AuditActivateSessionEvent",
                "en-US",
                "Session {0} activated.",
                m_sessionName);
            
            InitializeSessionAuditEvent(context, e, message);
                        
            if (m_softwareCertificates != null)
            {
                e.SetChildValue(context, BrowseNames.ClientSoftwareCertificates, m_softwareCertificates.ToArray(), false);
            }

            if (m_identityToken != null)
            {
                e.SetChildValue(context, BrowseNames.UserIdentityToken, Utils.Clone(m_identityToken), false);
            }

            m_server.ReportEvent(context, e);
        }