internal void SessionEnd(HttpSession ASession) { if (_OnSessionEnd != null) { _OnSessionEnd(ASession); } }
protected override void DoRemoveSession(HttpSession Session) { lock (_SessionListLock) { if (_SessionList.Contains(Session)) { _SessionList.Remove(Session); } } }
internal void SessionStart(HttpSession ASession) { if (_OnSessionStart != null) { _OnSessionStart(ASession); } }
public override HttpSession CreateSession(string RemoteIP, string SessionId) { lock (_SessionListLock) { HttpSession Temp = new HttpSession(this, SessionId, RemoteIP); _SessionList.Add(Temp); return Temp; } }
void SessionList_OnSessionStart(HttpSession Sender) { RequestHandlersLock.AcquireReaderLock(-1); try { for (int i = 0; i < mRequestHandlers.Count; i++) { mRequestHandlers[i].SessionStart(Sender); } } finally { RequestHandlersLock.ReleaseReaderLock(); } }
public void SessionStart(HttpSession session) { }
public override void Add(HttpSession ASession) { lock (_SessionListLock) { _SessionList.Add(ASession); } }
protected virtual void DoOnCreateSession(ContextRFC AContext, out HttpSession ANewSession) { ANewSession = null; }
internal void SetSession(HttpSession ASession) { _Session = ASession; }
protected abstract void DoRemoveSession(HttpSession ASession);
public abstract void Add(HttpSession ASession);
internal void RemoveSession(HttpSession ASession) { DoRemoveSession(ASession); }
public void SessionEnd(HttpSession session) { }