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