Пример #1
0
 public Task ReportMetrics(IClientPerformanceMetrics metricsData)
 {
     if (logger != null && logger.IsVerbose3)
     {
         logger.Verbose3("SqlStatisticsPublisher.ReportMetrics (client) called with data: {0}.", metricsData);
     }
     try
     {
         return(database.UpsertReportClientMetricsAsync(deploymentId, clientId, clientAddress, hostName, metricsData));
     }
     catch (Exception ex)
     {
         if (logger != null && logger.IsVerbose)
         {
             logger.Verbose("SqlStatisticsPublisher.ReportMetrics (client) failed: {0}", ex);
         }
         throw;
     }
 }