Exemple #1
0
        private void SendMetricSync(MetricKey metricKey, string metricValue)
        {
            var metricMessage = new NewMetricMessage
            {
                InstallId     = installGuid,
                MetricId      = metricKey.Guid,
                ApplicationId = appId.Guid,
                SessionId     = currentSessionId,
                EventId       = ++eventProgressiveCount,
                Value         = metricValue ?? string.Empty
            };

            SendMetricSync(metricMessage);
        }
Exemple #2
0
 private void SendMetricSync <T>(MetricKey metricKey, T metricValue)
 {
     SendMetricSync(metricKey, metricKey.ValueToString(metricValue));
 }
Exemple #3
0
 private void SendMetric <T>(MetricKey <T> metricKey, T metricValue)
 {
     scheduledTasks.Add(() => SendMetricSync(metricKey, metricValue));
 }