2 implementations of ICliUpdateNotifier
aspire (1)
Utils\CliUpdateNotifier.cs (1)
50CliExecutionContext executionContext) : ICliUpdateNotifier
Aspire.Cli.Tests (1)
TestServices\TestCliUpdateNotifier.cs (1)
8internal sealed class TestCliUpdateNotifier : ICliUpdateNotifier
34 references to ICliUpdateNotifier
aspire (6)
Commands\CommonCommandServices.cs (2)
14ICliUpdateNotifier updateNotifier, 23public ICliUpdateNotifier UpdateNotifier { get; } = updateNotifier;
Commands\UpdateCommand.cs (1)
36private readonly ICliUpdateNotifier _updateNotifier;
NuGet\NuGetPackagePrefetcher.cs (1)
14internal sealed class NuGetPackagePrefetcher(ILogger<NuGetPackagePrefetcher> logger, TimeProvider timeProvider, CliExecutionContext executionContext, IFeatures features, IPackagingService packagingService, ICliUpdateNotifier cliUpdateNotifier) : BackgroundService
Program.cs (1)
496builder.Services.AddSingleton<ICliUpdateNotifier, CliUpdateNotifier>();
Utils\EnvironmentChecker\AspireVersionCheck.cs (1)
19ICliUpdateNotifier updateNotifier,
Aspire.Cli.Tests (28)
NuGet\NuGetPackagePrefetcherTests.cs (3)
78var updateNotifier = provider.GetRequiredService<ICliUpdateNotifier>(); 465ICliUpdateNotifier updateNotifier,
Utils\CliTestHelper.cs (1)
421public Func<IServiceProvider, ICliUpdateNotifier> CliUpdateNotifierFactory { get; set; } = (IServiceProvider serviceProvider) =>
Utils\CliUpdateNotificationServiceTests.cs (24)
56var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 100var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 144var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 174var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 206var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 244var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 280var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 317var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 357var notifier = provider.GetRequiredService<ICliUpdateNotifier>(); 378services.AddSingleton<ICliUpdateNotifier, CliUpdateNotifier>(); 381var service = provider.GetRequiredService<ICliUpdateNotifier>(); 397services.AddSingleton<ICliUpdateNotifier, CliUpdateNotifier>(); 400var service = provider.GetRequiredService<ICliUpdateNotifier>();