コード例 #1
0
 public ExtendLifeService(ConnectionStateProvider connectionState, ILogger <ExtendLifeService> logger)
 {
     _connectionState = connectionState;
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #2
0
 public ConnectorService(ConnectionStateProvider connectionStateProvider, ILogger <ConnectorService> logger, IHostApplicationLifetime lifeTime)
 {
     _connectionStateProvider = connectionStateProvider;
     _logger   = logger;
     _lifeTime = lifeTime;
 }