public override bool Equals(object obj) { var ret = false; if (!object.ReferenceEquals(obj, null)) { ret = GetHashCode() == obj.GetHashCode(); } return(ret); }
public bool IsValidSession(WebAuth auth) { lock (sync) { bool ret = false; try { ret = sessions[auth].IsValid(); } catch { } return(ret); } }
public bool RemoveSession(WebAuth auth) { lock (sync) { bool ret = false; if (sessions.ContainsKey(auth)) { sessions[auth].App.OnRemoveSession((WebSession)sessions[auth]); return(sessions.Remove(auth)); } return(ret); } }
public IWebSession this[WebAuth auth] { get { IWebSession ret = null; try { ret = sessions[auth]; } catch { } return(ret); } }