/// <summary> /// Gets the diagnostics files for reporting to the HMS Cloud service. /// </summary> /// <param name="timer">The timer.</param> /// <param name="obj">The object.</param> private void GetDiagnosticsFiles(Timer timer, object obj) { var diagnosticData = DataAggregator.GetCasinoDiagnosticData(); if (diagnosticData == null || 0 >= diagnosticData.Count) { return; } try { DataExporter.SendCasinoDiagnosticData(diagnosticData); } catch (Exception ex) { Logger.Warn( $"An unexpected error occurred while calling DataReporter.SendCasinoDiagnosticData. Check WCF HMS configuration: [{ex.Message}]"); var innerEx = ex.InnerException; while (null != innerEx) { Logger.Warn($"[{innerEx.Message}]"); innerEx = innerEx.InnerException; } Logger.Warn($"Stack Trace: [{Environment.StackTrace}]"); } }