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

TraceState() private method

Dumps the current state of the session queue.
private TraceState ( string context ) : void
context string
return void
        internal void TraceState(string context)
        {
            if ((Utils.TraceMask & Utils.TraceMasks.Information) == 0)
            {
                return;
            }

            StringBuilder buffer = new StringBuilder();
            
            lock (m_lock)
            {
                buffer.AppendFormat("Session {0}", context);             
                buffer.AppendFormat(", Id={0}", m_sessionId);               
                buffer.AppendFormat(", Name={0}", m_sessionName);     
                buffer.AppendFormat(", ChannelId={0}", m_secureChannelId);

                if (m_identity != null)
                {
                    buffer.AppendFormat(", User={0}", m_identity.DisplayName);
                }
            }

            Utils.Trace("{0}", buffer.ToString());
        }