public void Delete(string id)
 {
     if (_currentSession != null && _currentSession.SessionId == id)
     {
         _currentSession = null;
     }
     _store.Delete(id);
 }
Exemple #2
0
        public IActionResult Delete(long sessionId)
        {
            _store.Delete(sessionId);

            return(new ObjectResult(new SessionResult("Deleted!", sessionId)));
        }