public Login GetCurrent() { if (_login != null) { return(_login); } lock (_syncObject) { if (_login == null) { // ReSharper disable once PossibleMultipleWriteAccessInDoubleCheckLocking _login = GetAuthUser(); } } return(_login); }
public void SetCurrent(Login login) { _login = login; }