public virtual UserLoginStateRemovedDto NewUserLoginStateRemoved(LoginKey loginKey) { var e = new UserLoginStateRemovedDto(); var eId = NewUserLoginStateEventId(loginKey); e.StateEventId = eId; return(e); }
private UserLoginStateEventIdDto NewUserLoginStateEventId(LoginKey loginKey) { var eId = new UserLoginStateEventIdDto(); eId.UserId = this.StateEventId.UserId; eId.LoginKey = new LoginKeyDto(loginKey); eId.UserVersion = this.StateEventId.Version; return(eId); }
public virtual IUserLoginState Get(LoginKey loginKey) { UserLoginId globalId = new UserLoginId(_userState.UserId, loginKey); if (_loadedUserLoginStates.ContainsKey(globalId)) { return(_loadedUserLoginStates[globalId]); } var state = UserLoginStateDao.Get(globalId); _loadedUserLoginStates.Add(globalId, state); return(state); }
public override bool Equals(object obj) { if (Object.ReferenceEquals(this, obj)) { return(true); } LoginKey other = obj as LoginKey; if (other == null) { return(false); } return(true && Object.Equals(this.LoginProvider, other.LoginProvider) && Object.Equals(this.ProviderKey, other.ProviderKey) ); }
public LoginKeyDto(LoginKey val) { this._value = val; }
public IUserLoginState Get(LoginKey loginKey) { throw new NotSupportedException(); }
public virtual IUserLoginStateRemoved NewUserLoginStateRemoved(LoginKey loginKey) { var stateEvent = new UserLoginStateRemoved(NewUserLoginStateEventId(loginKey)); return(stateEvent); }
protected UserLoginStateEventId NewUserLoginStateEventId(LoginKey loginKey) { var stateEventId = new UserLoginStateEventId(this.StateEventId.UserId, loginKey, this.StateEventId.Version); return(stateEventId); }
IUserLoginStateRemoved IUserStateDeleted.NewUserLoginStateRemoved(LoginKey loginKey) { return(NewUserLoginStateRemoved(loginKey)); }
IUserLoginStateRemoved IUserStateMergePatched.NewUserLoginStateRemoved(LoginKey loginKey) { return(NewUserLoginStateRemoved(loginKey)); }
IUserLoginStateCreated IUserStateCreated.NewUserLoginStateCreated(LoginKey loginKey) { return(NewUserLoginStateCreated(loginKey)); }
public UserLoginId(string userId, LoginKey loginKey) { this._userId = userId; this._loginKey = loginKey; }
public virtual IUserLoginState GetUserLogin(string userId, LoginKey loginKey) { return(StateRepository.GetUserLogin(userId, loginKey)); }
public LoginKeyFlattenedDto(LoginKey val) { this._value = val; }
public UserLoginStateEventId(string userId, LoginKey loginKey, long userVersion) { this._userId = userId; this._loginKey = loginKey; this._userVersion = userVersion; }