Apache.NMS.ActiveMQ.State.ConnectionState.this C# (CSharp) Метод

this() публичный Метод

public this ( SessionId id ) : SessionState
id Apache.NMS.ActiveMQ.Commands.SessionId
Результат SessionState
        public SessionState this[SessionId id]
        {
            get
            {
                #if DEBUG
                try
                {
                #endif
                    return sessions[id];
                #if DEBUG
                }
                catch(System.Collections.Generic.KeyNotFoundException)
                {
                    // Useful for dignosing missing session ids
                    string sessionList = string.Empty;
                    foreach(SessionId sessionId in sessions.Keys)
                    {
                        sessionList += sessionId.ToString() + "\n";
                    }
                    System.Diagnostics.Debug.Assert(false,
                        string.Format("Session '{0}' did not exist in the sessions collection.\n\nSessions:-\n{1}", id, sessionList));
                    throw;
                }
                #endif
            }
        }

Same methods

ConnectionState::this ( TransactionId id ) : TransactionState