示例#1
0
 public ApiKeyAuthenticationHandler(
     IOptionsMonitor <ApiKeyAuthenticationOptions> options,
     ILoggerFactory logger,
     UrlEncoder encoder,
     ISystemClock clock,
     MetricsKeyCache keyCache,
     SqlService db) : base(options, logger, encoder, clock)
 {
     _sql      = db;
     _keyCache = keyCache;
 }
示例#2
0
 public MetricsController(ILogger <MetricsController> logger, SqlService sql, MetricsKeyCache keyCache)
 {
     _sql      = sql;
     _logger   = logger;
     _keyCache = keyCache;
 }