Esempio n. 1
0
        public Login GetCurrent()
        {
            if (_login != null)
            {
                return(_login);
            }

            lock (_syncObject)
            {
                if (_login == null)
                {
                    // ReSharper disable once PossibleMultipleWriteAccessInDoubleCheckLocking
                    _login = GetAuthUser();
                }
            }

            return(_login);
        }
Esempio n. 2
0
 public void SetCurrent(Login login)
 {
     _login = login;
 }