7 implementations of IFeatures
aspire (1)
Configuration\Features.cs (1)
8internal sealed class Features(IConfiguration configuration) : IFeatures
Aspire.Cli.Tests (6)
DotNetSdkInstallerTests.cs (2)
385public class MinimumSdkCheckFeature(bool enabled = true) : IFeatures 393public class TestFeatures : IFeatures
Packaging\NuGetConfigMergerSnapshotTests.cs (1)
32private sealed class FakeFeatures : IFeatures
Packaging\PackagingServiceTests.cs (1)
24private sealed class TestFeatures : IFeatures
Projects\ProjectLocatorTests.cs (1)
703public class TestFeatures : IFeatures
Templating\DotNetTemplateFactoryTests.cs (1)
347private sealed class TestFeatures : IFeatures
89 references to IFeatures
aspire (37)
Commands\AddCommand.cs (2)
28private readonly IFeatures _features; 30public AddCommand(IDotNetCliRunner runner, IPackagingService packagingService, IInteractionService interactionService, IProjectLocator projectLocator, IAddCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Commands\BaseCommand.cs (1)
23protected BaseCommand(string name, string description, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, IInteractionService interactionService) : base(name, description)
Commands\BaseConfigSubCommand.cs (1)
10internal abstract class BaseConfigSubCommand(string name, string description, IFeatures features, ICliUpdateNotifier updateNotifier, IConfigurationService configurationService, CliExecutionContext executionContext, IInteractionService interactionService) : BaseCommand(name, description, features, updateNotifier, executionContext, interactionService)
Commands\CacheCommand.cs (2)
16public CacheCommand(IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) 36public ClearCommand(IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\ConfigCommand.cs (5)
23public ConfigCommand(IConfiguration configuration, IConfigurationService configurationService, IInteractionService interactionService, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) 71public GetCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) 120public SetCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) 199private sealed class ListCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) 237public DeleteCommand(IConfigurationService configurationService, IInteractionService interactionService, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\DeployCommand.cs (1)
20public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Commands\DoCommand.cs (1)
19public DoCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Commands\ExecCommand.cs (2)
29private readonly IFeatures _features; 39IFeatures features,
Commands\ExtensionInternalCommand.cs (2)
17public ExtensionInternalCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService) : base("extension", "Hidden command for extension integration", features, updateNotifier, executionContext, interactionService) 35public GetAppHostCandidatesCommand(IFeatures features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService) : base("get-apphosts", "Get AppHosts in the specified directory", features, updateNotifier, executionContext, interactionService)
Commands\InitCommand.cs (2)
34private readonly IFeatures _features; 57IFeatures features,
Commands\NewCommand.cs (2)
31private readonly IFeatures _features; 54IFeatures features,
Commands\PipelineCommandBase.cs (2)
29private readonly IFeatures _features; 54protected PipelineCommandBase(string name, string description, IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Commands\PublishCommand.cs (1)
37public PublishCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, IPublishCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, ICliHostEnvironment hostEnvironment)
Commands\RootCommand.cs (1)
35IFeatures featureFlags,
Commands\RunCommand.cs (2)
34private readonly IFeatures _features; 46IFeatures features,
Commands\TemplateCommand.cs (1)
16public TemplateCommand(ITemplate template, Func<ParseResult, CancellationToken, Task<int>> executeCallback, IFeatures features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext, IInteractionService interactionService)
Commands\UpdateCommand.cs (1)
35IFeatures features,
DotNet\DotNetCliRunner.cs (1)
57internal class DotNetCliRunner(ILogger<DotNetCliRunner> logger, IServiceProvider serviceProvider, AspireCliTelemetry telemetry, IConfiguration configuration, IFeatures features, IInteractionService interactionService, CliExecutionContext executionContext, IDiskCache diskCache) : IDotNetCliRunner
DotNet\DotNetSdkInstaller.cs (1)
17internal sealed class DotNetSdkInstaller(IFeatures features, IConfiguration configuration, CliExecutionContext executionContext, IDotNetCliRunner dotNetCliRunner, ILogger<DotNetSdkInstaller> logger) : IDotNetSdkInstaller
NuGet\NuGetPackageCache.cs (1)
23internal sealed class NuGetPackageCache(ILogger<NuGetPackageCache> logger, IDotNetCliRunner cliRunner, IMemoryCache memoryCache, AspireCliTelemetry telemetry, IFeatures features) : INuGetPackageCache
NuGet\NuGetPackagePrefetcher.cs (1)
14internal sealed class NuGetPackagePrefetcher(ILogger<NuGetPackagePrefetcher> logger, CliExecutionContext executionContext, IFeatures features, IPackagingService packagingService, ICliUpdateNotifier cliUpdateNotifier, IDotNetSdkInstaller sdkInstaller) : BackgroundService
Packaging\PackagingService.cs (1)
16internal class PackagingService(CliExecutionContext executionContext, INuGetPackageCache nuGetPackageCache, IFeatures features, IConfiguration configuration) : IPackagingService
Program.cs (1)
130builder.Services.AddSingleton<IFeatures, Features>();
Templating\DotNetTemplateFactory.cs (1)
19internal class DotNetTemplateFactory(IInteractionService interactionService, IDotNetCliRunner runner, ICertificateService certificateService, IPackagingService packagingService, INewCommandPrompter prompter, CliExecutionContext executionContext, IFeatures features) : ITemplateFactory
Utils\SdkInstallHelper.cs (1)
30IFeatures features,
Aspire.Cli.Tests (52)
Commands\ConfigCommandTests.cs (10)
327var featureFlags = provider.GetRequiredService<IFeatures>(); 345var featureFlags = provider.GetRequiredService<IFeatures>(); 369var featureFlags = provider.GetRequiredService<IFeatures>(); 406var featureFlags = newProvider.GetRequiredService<IFeatures>(); 418var featureFlags = provider.GetRequiredService<IFeatures>();
Commands\RunCommandTests.cs (8)
766provider.GetRequiredService<IFeatures>(), 820provider.GetRequiredService<IFeatures>(), 870provider.GetRequiredService<IFeatures>(), 924provider.GetRequiredService<IFeatures>(), 973provider.GetRequiredService<IFeatures>(), 1023provider.GetRequiredService<IFeatures>(), 1073provider.GetRequiredService<IFeatures>(), 1131IFeatures features,
DotNet\DotNetCliRunnerTests.cs (25)
53provider.GetRequiredService<IFeatures>(), 99provider.GetRequiredService<IFeatures>(), 147provider.GetRequiredService<IFeatures>(), 185provider.GetRequiredService<IFeatures>(), 232provider.GetRequiredService<IFeatures>(), 282provider.GetRequiredService<IFeatures>(), 334provider.GetRequiredService<IFeatures>(), 379provider.GetRequiredService<IFeatures>(), 427provider.GetRequiredService<IFeatures>(), 477provider.GetRequiredService<IFeatures>(), 546provider.GetRequiredService<IFeatures>(), 586provider.GetRequiredService<IFeatures>(), 647provider.GetRequiredService<IFeatures>(), 716provider.GetRequiredService<IFeatures>(), 801provider.GetRequiredService<IFeatures>(), 848provider.GetRequiredService<IFeatures>(), 890provider.GetRequiredService<IFeatures>(), 945provider.GetRequiredService<IFeatures>(), 1001provider.GetRequiredService<IFeatures>(), 1053provider.GetRequiredService<IFeatures>(), 1114provider.GetRequiredService<IFeatures>(), 1172provider.GetRequiredService<IFeatures>(), 1225provider.GetRequiredService<IFeatures>(), 1270provider.GetRequiredService<IFeatures>(), 1301IFeatures features,
Utils\CliTestHelper.cs (9)
267var features = serviceProvider.GetRequiredService<IFeatures>(); 286var features = serviceProvider.GetRequiredService<IFeatures>(); 311public Func<IServiceProvider, IFeatures> FeatureFlagsFactory { get; set; } = (IServiceProvider serviceProvider) => 325var features = serviceProvider.GetRequiredService<IFeatures>(); 334var features = serviceProvider.GetRequiredService<IFeatures>();