Exemple #1
0
 public UserIdentityViewComponent(IUserIdentityRepository userIdentityRepository,
                                  IUserLoginIdentity userLoginIdentity,
                                  IHttpContextAccessor httpContextAccessor)
 {
     _userIdentityRepository = userIdentityRepository;
     _userLoginIdentity      = userLoginIdentity;
     _httpContextAccessor    = httpContextAccessor;
 }
Exemple #2
0
 public UserRepository(ApplicationDbContext applicationDbContext, IHttpContextAccessor httpContextAccessor,
                       IUserIdentityRepository userIdentityRepository, IUserLoginIdentity userLoginIdentity)
 {
     _applicationDbContext   = applicationDbContext;
     _httpContextAccessor    = httpContextAccessor;
     _userIdentityRepository = userIdentityRepository;
     _userLoginIdentity      = userLoginIdentity;
 }