public EfRepository(DbContext dbContext, IAuthenticationAdapter authenticationAdapter)
 {
     if (dbContext == null)
     {
         throw new ArgumentNullException(nameof(dbContext));
     }
     DbContext             = dbContext;
     AuthenticationAdapter = authenticationAdapter;
     DbSet = dbContext.Set <TModel>();
 }
 public AuthController(IAuthenticationAdapter authenticationAdapter)
 {
     _authenticationAdapter = authenticationAdapter;
 }
Beispiel #3
0
 public OdissSignInManager(UserManager <OdissUser, Guid> userManager, IAuthenticationManager authenticationManager, IAuthenticationAdapter authenticationAdapter, UserSessionManager <Guid, Guid> userSessionManager, ILogger logger) : base(userManager, authenticationManager)
 {
     this.authenticationAdapter = authenticationAdapter;
     this.userSessionManager    = userSessionManager;
     this.logger = logger;
 }