10 references to Read
Aspire.Dashboard (6)
Components\Pages\Metrics.razor.cs (1)
269_metricsSubscription = TelemetryRepository.OnNewMetrics(selectedApplicationKey, SubscriptionType.Read, async () =>
Components\Pages\StructuredLogs.razor.cs (1)
226_logsSubscription = TelemetryRepository.OnNewLogs(PageViewModel.SelectedApplication.Id?.GetApplicationKey(), SubscriptionType.Read, async () =>
Components\Pages\TraceDetail.razor.cs (1)
245_tracesSubscription = TelemetryRepository.OnNewTraces(trace.FirstSpan.Source.ApplicationKey, SubscriptionType.Read, () => InvokeAsync(() =>
Components\Pages\Traces.razor.cs (1)
185_tracesSubscription = TelemetryRepository.OnNewTraces(selectedApplicationKey, SubscriptionType.Read, async () =>
Otlp\Storage\TelemetryRepository.cs (2)
213return AddSubscription(nameof(OnNewApplications), null, SubscriptionType.Read, callback, _applicationSubscriptions); 339if (!_logSubscriptions.Any(s => s.SubscriptionType == SubscriptionType.Read && (s.ApplicationKey == application.ApplicationKey || s.ApplicationKey == null)))
Aspire.Dashboard.Tests (4)
TelemetryRepositoryTests\LogTests.cs (4)
225using var subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Read, () => Task.CompletedTask); 277using var subscription = repository.OnNewLogs(applicationKey: new ApplicationKey("TestService", "1"), SubscriptionType.Read, () => Task.CompletedTask); 439repository.OnNewLogs(applications[0].ApplicationKey, SubscriptionType.Read, () => 660var subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Read, () =>