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)
72await service.SetConfigurationAsync("appHost.path", "updated/AppHost.csproj"); 106await service.SetConfigurationAsync("custom", "updated", isGlobal: true); 151: service.SetConfigurationAsync("features.defaultWatchEnabled", "false", global)); 174: service.SetConfigurationAsync("custom", "edited", global); 218await service.SetConfigurationAsync("channel", "daily", isGlobal: false); 241await service.SetConfigurationAsync("features.polyglotSupportEnabled", "true", isGlobal: false); 263await service.SetConfigurationAsync("channel", "daily", isGlobal: false); 280await service.SetConfigurationAsync("channel", "staging", isGlobal: false); 294await service.SetConfigurationAsync("channel", "daily", isGlobal: false); 306await service.SetConfigurationAsync("channel", "daily", isGlobal: false); 468await service.SetConfigurationAsync( 507await service.SetConfigurationAsync("appHost.path", "MyApp/MyApp.csproj", isGlobal: false); 542await service.SetConfigurationAsync(key, "deployment", isGlobal); 560await service.SetConfigurationAsync("plugins[0]", "aspire"); 561await service.SetConfigurationAsync("plugins[1]", "other"); 562await service.SetConfigurationAsync("plugins.2", "deployment"); 573await service.SetConfigurationAsync("matrix[0][0].name", "first"); 574await service.SetConfigurationAsync("matrix[0][1].name", "second"); 575await service.SetConfigurationAsync("matrix.0.0.name", "updated"); 586await service.SetConfigurationAsync("custom.0", "first"); 587await service.SetConfigurationAsync("custom:1", "second"); 588await service.SetConfigurationAsync("custom.0", "updated"); 621await Assert.ThrowsAsync<ArgumentException>(() => service.SetConfigurationAsync(key, "deployment")); 637await Assert.ThrowsAsync<InvalidOperationException>(() => service.SetConfigurationAsync("plugins[0]", "deployment")); 649await Assert.ThrowsAsync<ArgumentException>(() => service.SetConfigurationAsync("plugins[1]", "deployment", isGlobal: true)); 765await service.SetConfigurationAsync("features.polyglotSupportEnabled", "true", isGlobal: false); 789await service.SetConfigurationAsync("channel", "true", isGlobal: false); 810await service.SetConfigurationAsync("channel", "daily", isGlobal: false);