private void PublishNow() { QualificationScoresReportService reportService = new QualificationScoresReportService( m_scoresRepo, m_tournamentRepo); var results = reportService.GetReportData(m_currentConfig.CompetitionCode); string json = JsonConvert.SerializeObject(results); m_Writer.PublishFile("qualificationresults.json", json); if (InvokeRequired) { Invoke((MethodInvoker) delegate { status.Text = $"Updated at {results.LastUpdated}"; }); } else { status.Text = $"Updated at {results.LastUpdated}"; } }