Example #1
0
 public AccountService(UserManager <ApplicationUser> userManager,
                       SignInManager <ApplicationUser> signinManager,
                       RoleManager <ApplicationRole> roleManager,
                       IHttpContextAccessor httpContextAccessor,
                       IEnvironmentDescriptor env,
                       IOptions <JwtSettings> jwtSettings,
                       IOptions <AppSettings> appSettings)
 {
     _userManager         = userManager;
     _signinManager       = signinManager;
     _roleManager         = roleManager;
     _httpContextAccessor = httpContextAccessor;
     _env         = env;
     _jwtSettings = jwtSettings.Value;
     _appSettings = appSettings.Value;
 }
Example #2
0
 public DataContext(IEnvironmentDescriptor identityDescriptor)
     : base("DataContext", throwIfV1Schema: false)
 {
     EnvironmentDescriptor = identityDescriptor;
 }
Example #3
0
 public DataContext(DbContextOptions <DataContext> options, IEnvironmentDescriptor env) : base(options)
 {
     _env = env;
 }