コード例 #1
0
 public virtual async Task<ApplicationIdentityResult> AddLoginAsync(int userId, ApplicationUserLoginInfo login)
 {
     var identityResult = await _userManager.AddLoginAsync(userId, login.ToUserLoginInfo()).ConfigureAwait(false);
     return identityResult.ToApplicationIdentityResult();
 }
コード例 #2
0
 public virtual async Task<AppUser> FindAsync(ApplicationUserLoginInfo login)
 {
     var user = await _userManager.FindAsync(login.ToUserLoginInfo()).ConfigureAwait(false);
     return user.ToAppUser();
 }