public ServiceMonitorService( IServiceLogger <ServiceMonitorService> logger, IMonitorProvider monitorProvider, IServiceManagementProvider serviceManagementProvider) { _logger = logger; _monitorProvider = monitorProvider; _serviceManagementProvider = serviceManagementProvider; }
static BaseServiceContext() { /*自己实现IOC 依赖注入*/ ConfigManagerProvider = TryToRegisterContext <IConfigManagerProvider>("BSF.BaseService.ConfigManager.ConfigManagerProvider", new[] { "BSF.Full", "BSF.BaseService.ConfigManager" }); MonitorProvider = TryToRegisterContext <IMonitorProvider>("BSF.BaseService.Monitor.MonitorProvider", new[] { "BSF.Full", "BSF.BaseService.Monitor" }); }
public InternalServiceContext( IOptionsMonitor <ServiceOptions> serviceOptions, IOptionsMonitor <LoggerOptions> loggerOptions, IServiceManagementProvider serviceManagementProvider, IMonitorProvider monitorProvider, ILogEventProvider logEventProvider) { _serviceOptions = serviceOptions; _loggerOptions = loggerOptions; _serviceManagementProvider = serviceManagementProvider; _monitorProvider = monitorProvider; _logEventProvider = logEventProvider; }
public ServerServiceContext( SelfServerOptions selfOptions, IOptionsMonitor <LoggerOptions> loggerOptions, IOptionsMonitor <MonitorOptions> monitorOptions, IServiceManagementProvider serviceManagementProvider, IMonitorProvider monitorProvider, ILogEventProvider logEventProvider) { _loggerOptions = loggerOptions; _monitorOptions = monitorOptions; _serviceManagementProvider = serviceManagementProvider; _monitorProvider = monitorProvider; _logEventProvider = logEventProvider; _selfOptions = selfOptions; runningVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString(); }
public MonitorsController(IMonitorProvider monitorProvider) { _monitorProvider = monitorProvider; }