Nancy.LongPoll.PollService.RemoveSession C# (CSharp) Method

RemoveSession() private method

private RemoveSession ( string sessId ) : void
sessId string
return void
    private void RemoveSession(string sessId)
    {
      lock (_Clients)
      {
        if (_SessIdClientId.ContainsKey(sessId))
        {
          foreach (var clientId in _SessIdClientId[sessId])
          {
            _ClientIdToSessId[clientId].Remove(sessId);
            if (_ClientIdToSessId[clientId].Count == 0)
            {
              _ClientIdToSessId.Remove(clientId);
            }
          }
          _SessIdClientId.Remove(sessId);
        }
      }
    }