In controller,
private readonly ApplicationDbContext _dbContext; public HealthCheckController(ApplicationDbContext dbContext) { _dbContext = dbContext; }
Then how can I get httpcontext then? I want to check the database availability.
In controller,
private readonly ApplicationDbContext _dbContext; public HealthCheckController(ApplicationDbContext dbContext) { _dbContext = dbContext; }
Then how can I get httpcontext then? I want to check the database availability.