Esempio n. 1
0
        protected override async Task ExecuteAsync(CancellationToken stoppingToken)
        {
            do
            {
                _dataCollector.ReportDatabaseSize(_databaseAdapter.GetDatabaseSize());
                _dataCollector.ReportMonitoringDataSize(_databaseAdapter.GetMonitoringDataSize());
                _dataCollector.ReportEnvironmentDataSize(_databaseAdapter.GetEnvironmentDatabaseSize());

                await Task.Delay(_checkInterval, stoppingToken);
            } while (!stoppingToken.IsCancellationRequested);
        }