public ReleaseSessionResponse ReleaseSession(ReleaseSessionRequest request) { string userName = request.Session.User; string sessionId = request.Session.SessionID; SimpleSession session = sessions.Find(s => s.SessionId == sessionId) ?? sessions.Find(s => s.UserName == userName); if (session != null) { session.Logout(); if (!session.IsValid()) { sessions.Remove(session); } } return(new ReleaseSessionResponse()); }
public ReleaseSessionResponse ReleaseSession(ReleaseSessionRequest request) { return(Create().ReleaseSession(request)); }