Пример #1
0
 public MetricsProcessingService(
     IBusClient busClient,
     IServerService serverService,
     IDatabaseService databaseService,
     IDatabaseBackupMetricsService databaseBackupMetricsService,
     IDatabaseSpaceMetricsService databaseSpaceMetricsService,
     IMemoryUsageMetricsService memoryUsageMetricsService
     )
 {
     _busClient       = busClient;
     _serverService   = serverService;
     _databaseService = databaseService;
     _databaseBackupMetricsService = databaseBackupMetricsService;
     _databaseSpaceMetricsService  = databaseSpaceMetricsService;
     _memoryUsageMetricsService    = memoryUsageMetricsService;
 }
Пример #2
0
 public SqlMonitorController(
     IDbWorkerService dbWorkerService,
     ISqlQueryService sqlQueryService,
     IServerService serverService,
     IMemoryUsageMetricsService memoryUsageMetricsService,
     IDatabaseService databaseService,
     IDatabaseBackupMetricsService databaseBackupMetricsService,
     IDatabaseSpaceMetricsService databaseSpaceMetricsService,
     IDataProtectionProvider dataProtector)
 {
     _sqlQueryService              = sqlQueryService;
     _dbWorkerService              = dbWorkerService;
     _serverService                = serverService;
     _memoryUsageMetricsService    = memoryUsageMetricsService;
     _databaseService              = databaseService;
     _databaseBackupMetricsService = databaseBackupMetricsService;
     _databaseSpaceMetricsService  = databaseSpaceMetricsService;
     _protector = dataProtector.CreateProtector("sql-server-pass-protector");
 }