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); }
private void SendMetricSync <T>(MetricKey metricKey, T metricValue) { SendMetricSync(metricKey, metricKey.ValueToString(metricValue)); }
private void SendMetric <T>(MetricKey <T> metricKey, T metricValue) { scheduledTasks.Add(() => SendMetricSync(metricKey, metricValue)); }