コード例 #1
0
 public MonitorHealthCheckBackgrounService(
     IOptionsMonitor <ServiceOptions> options,
     IMonitoHeartBeatChannel channel,
     ILogger <MonitorHealthCheckBackgrounService> logger,
     MonitorService.MonitorServiceClient client)
 {
     _options = options;
     _channel = channel;
     _logger  = logger;
     _client  = client;
 }
コード例 #2
0
 public ClientServiceContext(
     IOptionsMonitor <ServiceOptions> serviceOptions,
     IOptionsMonitor <MonitorOptions> monitorOptions,
     IOptionsMonitor <LoggerOptions> loggerOptions,
     ILogCollectorChannel logCollectorChannel,
     IMonitoHeartBeatChannel monitoHeartBeatChannel,
     MonitorService.MonitorServiceClient monitorServiceClient)
 {
     _serviceOptions         = serviceOptions;
     _monitorOptions         = monitorOptions;
     _loggerOptions          = loggerOptions;
     _logCollectorChannel    = logCollectorChannel;
     _monitoHeartBeatChannel = monitoHeartBeatChannel;
     _monitorServiceClient   = monitorServiceClient;
 }