public CustomCookieAuthenticationEvents(AuctionContext context) { // Get the database from registered DI services. db = context; }
public EmailSender(IOptions <EmailAuthOptions> optionsAccessor, AuctionContext context) { Options = optionsAccessor.Value; _context = context; }