Apache.NMS.ActiveMQ.State.ConnectionState.removeSession C# (CSharp) Méthode

removeSession() public méthode

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

Usage Example

Exemple #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