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)
377
public class MinimumSdkCheckFeature(bool enabled = true) :
IFeatures
385
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)
704
public class TestFeatures :
IFeatures
Templating\DotNetTemplateFactoryTests.cs (1)
361
private sealed class TestFeatures :
IFeatures
80 references to IFeatures
aspire (34)
Commands\AddCommand.cs (1)
28
public AddCommand(IDotNetCliRunner runner, IPackagingService packagingService, IInteractionService interactionService, IProjectLocator projectLocator, IAddCommandPrompter prompter, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller,
IFeatures
features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
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)
19
public DeployCommand(IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller,
IFeatures
features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\ExecCommand.cs (1)
37
IFeatures
features,
Commands\ExtensionInternalCommand.cs (2)
16
public ExtensionInternalCommand(
IFeatures
features, ICliUpdateNotifier updateNotifier, IProjectLocator projectLocator, CliExecutionContext executionContext, IInteractionService interactionService) : base("extension", "Hidden command for extension integration", features, updateNotifier, executionContext, interactionService)
34
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)
33
private readonly
IFeatures
_features;
56
IFeatures
features,
Commands\NewCommand.cs (2)
30
private readonly
IFeatures
_features;
53
IFeatures
features,
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)
Commands\PublishCommandBase.cs (2)
31
private readonly
IFeatures
_features;
45
protected PublishCommandBase(string name, string description, IDotNetCliRunner runner, IInteractionService interactionService, IProjectLocator projectLocator, AspireCliTelemetry telemetry, IDotNetSdkInstaller sdkInstaller,
IFeatures
features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext)
Commands\RootCommand.cs (1)
34
IFeatures
featureFlags,
Commands\RunCommand.cs (2)
33
private readonly
IFeatures
_features;
44
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)
21
public UpdateCommand(IProjectLocator projectLocator, IPackagingService packagingService, IProjectUpdater projectUpdater, IInteractionService interactionService,
IFeatures
features, ICliUpdateNotifier updateNotifier, CliExecutionContext executionContext) : base("update", UpdateCommandStrings.Description, features, updateNotifier, executionContext, interactionService)
DotNet\DotNetCliRunner.cs (1)
56
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)
15
internal sealed class DotNetSdkInstaller(
IFeatures
features, IConfiguration configuration) : 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)
13
internal sealed class NuGetPackagePrefetcher(ILogger<NuGetPackagePrefetcher> logger, CliExecutionContext executionContext,
IFeatures
features, IPackagingService packagingService, ICliUpdateNotifier cliUpdateNotifier) : BackgroundService
Packaging\PackagingService.cs (1)
16
internal class PackagingService(CliExecutionContext executionContext, INuGetPackageCache nuGetPackageCache,
IFeatures
features, IConfiguration configuration) : IPackagingService
Program.cs (1)
122
builder.Services.AddSingleton<
IFeatures
, Features>();
Projects\ProjectLocator.cs (1)
23
internal sealed class ProjectLocator(ILogger<ProjectLocator> logger, IDotNetCliRunner runner, CliExecutionContext executionContext, IInteractionService interactionService, IConfigurationService configurationService, AspireCliTelemetry telemetry,
IFeatures
features) : IProjectLocator
Templating\DotNetTemplateFactory.cs (1)
19
internal class DotNetTemplateFactory(IInteractionService interactionService, IDotNetCliRunner runner, ICertificateService certificateService, IPackagingService packagingService, INewCommandPrompter prompter, CliExecutionContext executionContext,
IFeatures
features) : ITemplateFactory
Aspire.Cli.Tests (46)
Commands\ConfigCommandTests.cs (10)
326
var
featureFlags = provider.GetRequiredService<
IFeatures
>();
344
var
featureFlags = provider.GetRequiredService<
IFeatures
>();
368
var
featureFlags = provider.GetRequiredService<
IFeatures
>();
405
var
featureFlags = newProvider.GetRequiredService<
IFeatures
>();
417
var
featureFlags = provider.GetRequiredService<
IFeatures
>();
Commands\RunCommandTests.cs (8)
792
provider.GetRequiredService<
IFeatures
>(),
848
provider.GetRequiredService<
IFeatures
>(),
900
provider.GetRequiredService<
IFeatures
>(),
956
provider.GetRequiredService<
IFeatures
>(),
1007
provider.GetRequiredService<
IFeatures
>(),
1059
provider.GetRequiredService<
IFeatures
>(),
1111
provider.GetRequiredService<
IFeatures
>(),
1165
IFeatures
features,
DotNet\DotNetCliRunnerTests.cs (17)
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
>(),
873
IFeatures
features,
Utils\CliTestHelper.cs (11)
212
var
features = serviceProvider.GetRequiredService<
IFeatures
>();
258
var
features = serviceProvider.GetRequiredService<
IFeatures
>();
277
var
features = serviceProvider.GetRequiredService<
IFeatures
>();
302
public Func<IServiceProvider,
IFeatures
> FeatureFlagsFactory { get; set; } = (IServiceProvider serviceProvider) =>
316
var
features = serviceProvider.GetRequiredService<
IFeatures
>();
325
var
features = serviceProvider.GetRequiredService<
IFeatures
>();