Apache.NMS.ActiveMQ.State.ConnectionState.removeSession C# (CSharp) Method

removeSession() public method

public removeSession ( SessionId id ) : SessionState
id Apache.NMS.ActiveMQ.Commands.SessionId
return SessionState
        public SessionState removeSession(SessionId id)
        {
            SessionState ret = sessions[id];
            sessions.Remove(id);
            return ret;
        }

Usage Example

Example #1
0
 public override Response processRemoveSession(SessionId id)
 {
     if (id != null)
     {
         ConnectionId connectionId = id.ParentId;
         if (connectionId != null)
         {
             ConnectionState cs = connectionStates[connectionId];
             if (cs != null)
             {
                 cs.removeSession(id);
             }
         }
     }
     return(TRACKED_RESPONSE_MARKER);
 }
All Usage Examples Of Apache.NMS.ActiveMQ.State.ConnectionState::removeSession