コード例 #1
0
ファイル: UserService.cs プロジェクト: alisdemir33/JWTSample
 // private readonly CONTOSOContext _dbContext;
 public UserService(IOptions <AppSettings> appSettings, JwtTestDBContext dbContext, IHttpContextAccessor accessor)
 //   public UserService(IOptions<AppSettings> appSettings, CONTOSOContext dbContext)
 {
     _dbContext           = dbContext;
     _appSettings         = appSettings.Value;
     _httpContextAccessor = accessor;
 }
コード例 #2
0
 // private readonly CONTOSOContext _dbContext;
 public UserService(IOptions <AppSettings> appSettings, JwtTestDBContext dbContext)
 //   public UserService(IOptions<AppSettings> appSettings, CONTOSOContext dbContext)
 {
     _dbContext   = dbContext;
     _appSettings = appSettings.Value;
 }