private string?GetVersion() { if (_metricsConsentService.GetConsentLevel() == TelemetryLevel.Minimal) { return(null); } return(_umbracoVersion.SemanticVersion.ToSemanticStringWithoutBuild()); }
public IEnumerable <UsageInformation>?GetDetailed() { if (_metricsConsentService.GetConsentLevel() != TelemetryLevel.Detailed) { return(null); } var detailedUsageInformation = new List <UsageInformation>(); foreach (IDetailedTelemetryProvider provider in _providers) { detailedUsageInformation.AddRange(provider.GetInformation()); } return(detailedUsageInformation); }
public TelemetryLevel GetConsentLevel() { return(_metricsConsentService.GetConsentLevel()); }