Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public UserLoginRemoved(TKey userId, ImmutableUserLoginInfo userLoginInfo)
 {
     UserId        = userId;
     UserLoginInfo = userLoginInfo;
 }
 public UserLoginInfoAdded(ImmutableUserLoginInfo userloginInfo)
 {
     UserloginInfo = userloginInfo;
 }
 public AddUserLoginInfo(ImmutableUserLoginInfo userloginInfo)
 {
     UserLoginInfo = userloginInfo;
 }