Opc.Ua.Server.Subscription.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("Subscription {0}", context);
                
                buffer.AppendFormat(", Id={0}", m_id);
                buffer.AppendFormat(", Publishing={0}", m_publishingInterval);
                buffer.AppendFormat(", KeepAlive={0}", m_maxKeepAliveCount);
                buffer.AppendFormat(", LifeTime={0}", m_maxLifetimeCount);
                buffer.AppendFormat(", Enabled={0}", m_publishingEnabled);
                buffer.AppendFormat(", KeepAliveCount={0}", m_keepAliveCounter);
                buffer.AppendFormat(", LifeTimeCount={0}", m_lifetimeCounter);
                buffer.AppendFormat(", WaitingForPublish={0}", m_waitingForPublish);
                buffer.AppendFormat(", SeqNo={0}", m_sequenceNumber);
                buffer.AppendFormat(", ItemCount={0}", m_monitoredItems.Count);
                buffer.AppendFormat(", ItemsToCheck={0}", m_itemsToCheck.Count);
                buffer.AppendFormat(", ItemsToPublish={0}", m_itemsToPublish.Count);
                buffer.AppendFormat(", MessageCount={0}", m_sentMessages.Count);
            }

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