public async Task AddLoginAsync(TUser user, UserLoginInfo login, CancellationToken cancellationToken) { if (user == null) { throw new ArgumentNullException(nameof(user)); } await EnsureLoginsLoaded(user); var loginInfo = new ImmutableUserLoginInfo(login.LoginProvider, login.ProviderKey, login.ProviderDisplayName); user.Logins.Add(loginInfo); user.Changes.Add(new AddUserLoginInfo(loginInfo)); }
public UserLoginRemoved(TKey userId, ImmutableUserLoginInfo userLoginInfo) { UserId = userId; UserLoginInfo = userLoginInfo; }
public UserLoginInfoAdded(ImmutableUserLoginInfo userloginInfo) { UserloginInfo = userloginInfo; }
public AddUserLoginInfo(ImmutableUserLoginInfo userloginInfo) { UserLoginInfo = userloginInfo; }