1 instantiation of Subscription
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
241
subscription = new
Subscription
(name, applicationKey, subscriptionType, callback, () =>
28 references to Subscription
Aspire.Dashboard (22)
Components\Pages\Metrics.razor.cs (2)
27
private
Subscription
? _applicationsSubscription;
28
private
Subscription
? _metricsSubscription;
Components\Pages\Resources.razor.cs (1)
28
private
Subscription
? _logsSubscription;
Components\Pages\StructuredLogs.razor.cs (2)
38
private
Subscription
? _applicationsSubscription;
39
private
Subscription
? _logsSubscription;
Components\Pages\TraceDetail.razor.cs (1)
26
private
Subscription
? _tracesSubscription;
Components\Pages\Traces.razor.cs (2)
36
private
Subscription
? _applicationsSubscription;
37
private
Subscription
? _tracesSubscription;
Otlp\Storage\TelemetryRepository.cs (14)
29
private readonly List<
Subscription
> _applicationSubscriptions = new();
30
private readonly List<
Subscription
> _logSubscriptions = new();
31
private readonly List<
Subscription
> _metricsSubscriptions = new();
32
private readonly List<
Subscription
> _tracesSubscriptions = new();
54
internal List<
Subscription
> TracesSubscriptions => _tracesSubscriptions;
218
public
Subscription
OnNewApplications(Func<Task> callback)
223
public
Subscription
OnNewLogs(ApplicationKey? applicationKey, SubscriptionType subscriptionType, Func<Task> callback)
228
public
Subscription
OnNewMetrics(ApplicationKey? applicationKey, SubscriptionType subscriptionType, Func<Task> callback)
233
public
Subscription
OnNewTraces(ApplicationKey? applicationKey, SubscriptionType subscriptionType, Func<Task> callback)
238
private
Subscription
AddSubscription(string name, ApplicationKey? applicationKey, SubscriptionType subscriptionType, Func<Task> callback, List<
Subscription
> subscriptions)
240
Subscription
? subscription = null;
257
private void RaiseSubscriptionChanged(List<
Subscription
> subscriptions)
261
foreach (
var
subscription in subscriptions)
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\LogTests.cs (6)
277
using
var
subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Read, () => Task.CompletedTask);
329
using
var
subscription = repository.OnNewLogs(applicationKey: new ApplicationKey("TestService", "1"), SubscriptionType.Read, () => Task.CompletedTask);
382
using
var
subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Other, () => Task.CompletedTask);
537
var
subscription = repository.OnNewApplications(() =>
577
var
subscription = repository.OnNewApplications(() =>
714
var
subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Read, async () =>