Ejemplo n.º 1
0
 /// <summary>
 /// Gets a session record from a cookie identifier
 /// </summary>
 /// <returns>The session record.</returns>
 /// <param name="cookie">The cookie identifier.</param>
 public virtual Task <SessionRecord> GetSessionFromCookieAsync(string cookie)
 {
     return(m_lock.LockedAsync(() =>
                               m_connection.SelectSingle <SessionRecord>(
                                   x => x.Cookie == cookie
                                   )
                               ));
 }