Implemented interface member:
method
SetConfigurationAsync
Aspire.Cli.Configuration.IConfigurationService.SetConfigurationAsync(System.String, System.String, System.Boolean, System.Threading.CancellationToken)
28 references to SetConfigurationAsync
Aspire.Cli.Tests (28)
Configuration\ConfigurationServiceTests.cs (28)
72
await service.
SetConfigurationAsync
("appHost.path", "updated/AppHost.csproj");
106
await service.
SetConfigurationAsync
("custom", "updated", isGlobal: true);
151
: service.
SetConfigurationAsync
("features.defaultWatchEnabled", "false", global));
174
: service.
SetConfigurationAsync
("custom", "edited", global);
218
await service.
SetConfigurationAsync
("channel", "daily", isGlobal: false);
241
await service.
SetConfigurationAsync
("features.polyglotSupportEnabled", "true", isGlobal: false);
263
await service.
SetConfigurationAsync
("channel", "daily", isGlobal: false);
280
await service.
SetConfigurationAsync
("channel", "staging", isGlobal: false);
294
await service.
SetConfigurationAsync
("channel", "daily", isGlobal: false);
306
await service.
SetConfigurationAsync
("channel", "daily", isGlobal: false);
468
await service.
SetConfigurationAsync
(
507
await service.
SetConfigurationAsync
("appHost.path", "MyApp/MyApp.csproj", isGlobal: false);
542
await service.
SetConfigurationAsync
(key, "deployment", isGlobal);
560
await service.
SetConfigurationAsync
("plugins[0]", "aspire");
561
await service.
SetConfigurationAsync
("plugins[1]", "other");
562
await service.
SetConfigurationAsync
("plugins.2", "deployment");
573
await service.
SetConfigurationAsync
("matrix[0][0].name", "first");
574
await service.
SetConfigurationAsync
("matrix[0][1].name", "second");
575
await service.
SetConfigurationAsync
("matrix.0.0.name", "updated");
586
await service.
SetConfigurationAsync
("custom.0", "first");
587
await service.
SetConfigurationAsync
("custom:1", "second");
588
await service.
SetConfigurationAsync
("custom.0", "updated");
621
await Assert.ThrowsAsync<ArgumentException>(() => service.
SetConfigurationAsync
(key, "deployment"));
637
await Assert.ThrowsAsync<InvalidOperationException>(() => service.
SetConfigurationAsync
("plugins[0]", "deployment"));
649
await Assert.ThrowsAsync<ArgumentException>(() => service.
SetConfigurationAsync
("plugins[1]", "deployment", isGlobal: true));
765
await service.
SetConfigurationAsync
("features.polyglotSupportEnabled", "true", isGlobal: false);
789
await service.
SetConfigurationAsync
("channel", "true", isGlobal: false);
810
await service.
SetConfigurationAsync
("channel", "daily", isGlobal: false);