1 implementation of INotificationService
Aspire.Dashboard (1)
Model\NotificationService.cs (1)
9internal sealed class NotificationService(TimeProvider timeProvider) : INotificationService
19 references to INotificationService
Aspire.Dashboard (7)
Components\Dialogs\NotificationsDialog.razor.cs (1)
15public required Aspire.Dashboard.Model.INotificationService NotificationService { get; init; }
Components\Layout\MainLayout.razor.cs (1)
103public required Aspire.Dashboard.Model.INotificationService NotificationService { get; init; }
Components\Layout\NotificationsHeaderButton.razor.cs (1)
18public required INotificationService NotificationService { get; init; }
Components\Layout\TerminalDock.razor.cs (1)
92public required Aspire.Dashboard.Model.INotificationService NotificationService { get; init; }
DashboardWebApplication.cs (1)
336builder.Services.TryAddSingleton<Aspire.Dashboard.Model.INotificationService, Aspire.Dashboard.Model.NotificationService>();
Model\DashboardCommandExecutor.cs (1)
23INotificationService notificationService)
Model\NotificationService.cs (1)
7/// Thread-safe singleton implementation of <see cref="INotificationService"/>.
Aspire.Dashboard.Components.Tests (8)
Layout\TerminalDockTests.cs (7)
19using INotificationService = Aspire.Dashboard.Model.INotificationService; 471Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 493var notifications = Services.GetRequiredService<INotificationService>(); 562Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 614Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications()); 640Assert.Empty(Services.GetRequiredService<INotificationService>().GetNotifications());
Shared\FluentUISetupHelpers.cs (1)
250context.Services.AddSingleton<Aspire.Dashboard.Model.INotificationService, Aspire.Dashboard.Model.NotificationService>();
Aspire.Dashboard.Tests (4)
Model\DashboardCommandExecutorTests.cs (4)
39var executor = CreateExecutor(dashboardClient, out var notificationService, out var toastService); 83var executor = CreateExecutor(dashboardClient, out var notificationService, out var toastService); 123var executor = CreateExecutor(dashboardClient, out var notificationService, out var toastService); 187private static DashboardCommandExecutor CreateExecutor(TestDashboardClient dashboardClient, out Aspire.Dashboard.Model.INotificationService notificationService, out TestNotificationService toastService)