public virtual IUserLoginState Get(LoginKey loginKey, bool forCreation, bool nullAllowed) { UserLoginId globalId = new UserLoginId(_userState.UserId, loginKey); if (_loadedUserLoginStates.ContainsKey(globalId)) { return(_loadedUserLoginStates[globalId]); } if (forCreation || ForReapplying) { var state = new UserLoginState(ForReapplying); state.UserLoginId = globalId; _loadedUserLoginStates.Add(globalId, state); return(state); } else { var state = UserLoginStateDao.Get(globalId, nullAllowed); if (state != null) { _loadedUserLoginStates.Add(globalId, state); } return(state); } }
public virtual UserLoginStateMergePatchedDto NewUserLoginStateMergePatched(LoginKey loginKey) { var e = new UserLoginStateMergePatchedDto(); var eId = NewUserLoginStateEventId(loginKey); e.StateEventId = eId; return(e); }
public virtual UserLoginStateRemovedDto NewUserLoginStateRemoved(LoginKey loginKey) { var e = new UserLoginStateRemovedDto(); var eId = NewUserLoginEventId(loginKey); e.UserLoginEventId = eId; return(e); }
public LoginKeyDtoWrapper(LoginKey val) { if (val == null) { throw new ArgumentNullException("val"); } this._value = val; }
public virtual LoginKey ToLoginKey() { LoginKey v = new LoginKey(); v.LoginProvider = this.LoginProvider; v.ProviderKey = this.ProviderKey; return(v); }
private UserLoginStateEventIdDto NewUserLoginStateEventId(LoginKey loginKey) { var eId = new UserLoginStateEventIdDto(); eId.UserId = this.StateEventId.UserId; eId.LoginKey = new LoginKeyDtoWrapper(loginKey); eId.UserVersion = this.StateEventId.Version; return(eId); }
private UserLoginEventId NewUserLoginEventId(LoginKey loginKey) { var eId = new UserLoginEventId(); eId.UserId = this.UserEventId.UserId; eId.LoginKey = loginKey; eId.UserVersion = this.UserEventId.Version; return(eId); }
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 UserLoginId(string userId, LoginKey loginKey) { this._userId = userId; this._loginKey = loginKey; }
public IUserLoginState Get(LoginKey loginKey) { throw new NotSupportedException(); }
public virtual IUserLoginState GetUserLogin(string userId, LoginKey loginKey) { return(StateQueryRepository.GetUserLogin(userId, loginKey)); }
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 IUserLoginState Get(LoginKey loginKey, bool forCreation, bool nullAllowed) { 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); }
public virtual IUserLoginStateMergePatched NewUserLoginStateMergePatched(LoginKey loginKey) { var stateEvent = new UserLoginStateMergePatched(NewUserLoginEventId(loginKey)); return(stateEvent); }
public virtual IUserLoginState Get(LoginKey loginKey, bool forCreation) { return(Get(loginKey, forCreation, false)); }
public virtual IUserLoginState Get(LoginKey loginKey) { return(Get(loginKey, false, false)); }
public UserLoginStateEventId(string userId, LoginKey loginKey, long userVersion) { this._userId = userId; this._loginKey = loginKey; this._userVersion = userVersion; }
public LoginKeyFlattenedDto(LoginKey val) { this._value = new LoginKeyDtoWrapper(val); }