public async Task HandleAsync(DbWorkerOperationCompleted command) { if (command.Resource != "sqlmonitor-service") { return; } if (command.SqlQueryName == (int)SqlQueryNames.DatabaseNames) { await _databaseService.AddDatabases(command); } else { await _metricsProcessingService.ProcessMetrics(command); } }