2 implementations of Configuration
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
58public ConfigurationManager Configuration => _innerBuilder.Configuration;
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
120public ConfigurationManager Configuration => _innerBuilder.Configuration;
42 references to Configuration
Aspire.Hosting (7)
OtlpConfigurationExtensions.cs (1)
121AddOtlpEnvironment(builder.Resource, builder.ApplicationBuilder.Configuration, builder.ApplicationBuilder.Environment);
ParameterResourceBuilderExtensions.cs (4)
30return builder.AddParameter(name, parameterDefault => GetParameterValue(builder.Configuration, name, parameterDefault), secret: secret); 103parameterDefault => GetParameterValue(builder.Configuration, name, parameterDefault, configurationKey), 224return builder.Configuration.GetConnectionString(name) ?? throw new DistributedApplicationException($"Connection string parameter resource could not be used because connection string '{name}' is missing."); 322var parameterResource = new ParameterResource(name, defaultValue => GetParameterValue(builder.Configuration, name, defaultValue), secret)
ProjectResourceBuilderExtensions.cs (1)
333var appHostDefaultLaunchProfileName = builder.ApplicationBuilder.Configuration["AppHost:DefaultLaunchProfileName"]
Utils\VolumeNameGenerator.cs (1)
32var applicationHash = builder.ApplicationBuilder.Configuration["AppHost:Sha256"]![..10].ToLowerInvariant();
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
216var applicationHash = builder.Configuration["AppHost:Sha256"]![..5].ToLowerInvariant();
Aspire.Hosting.Containers.Tests (4)
WithDockerfileTests.cs (4)
165builder.Configuration["Parameters:message"] = "hello"; 213builder.Configuration["Parameters:message"] = "hello"; 260builder.Configuration["Parameters:secret"] = "open sesame"; 306builder.Configuration["Parameters:secret"] = "open sesame";
Aspire.Hosting.Elasticsearch.Tests (1)
AddElasticsearchTests.cs (1)
79appBuilder.Configuration["Parameters:pass"] = "pass";
Aspire.Hosting.Milvus.Tests (5)
AddMilvusTests.cs (5)
20appBuilder.Configuration["Parameters:apikey"] = "pass"; 51appBuilder.Configuration["Parameters:apikey"] = "pass"; 83appBuilder.Configuration["Parameters:apikey"] = "pass"; 100appBuilder.Configuration["Parameters:apikey"] = "pass"; 133appBuilder.Configuration["Parameters:apikey"] = "pass";
Aspire.Hosting.MySql.Tests (1)
AddMySqlTests.cs (1)
77appBuilder.Configuration["Parameters:pass"] = "pass";
Aspire.Hosting.Oracle.Tests (2)
AddOracleTests.cs (2)
76appBuilder.Configuration["Parameters:pass"] = "pass"; 158appBuilder.Configuration["Parameters:pass"] = "pass";
Aspire.Hosting.PostgreSQL.Tests (2)
AddPostgresTests.cs (2)
101appBuilder.Configuration["Parameters:pass"] = "pass"; 192appBuilder.Configuration["Parameters:pass"] = "pass";
Aspire.Hosting.Qdrant.Tests (3)
AddQdrantTests.cs (3)
112appBuilder.Configuration["Parameters:pass"] = "pass"; 155appBuilder.Configuration["Parameters:pass"] = "pass"; 172appBuilder.Configuration["Parameters:pass"] = "pass";
Aspire.Hosting.RabbitMQ.Tests (1)
AddRabbitMQTests.cs (1)
95appBuilder.Configuration["Parameters:pass"] = "p@ssw0rd1";
Aspire.Hosting.SqlServer.Tests (2)
AddSqlServerTests.cs (2)
83appBuilder.Configuration["Parameters:pass"] = "p@ssw0rd1"; 105appBuilder.Configuration["Parameters:pass"] = "p@ssw0rd1";
Aspire.Hosting.Tests (9)
AddParameterTests.cs (6)
20appBuilder.Configuration["Parameters:pass"] = "pass1"; 101appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 128appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 178appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 240appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 298appBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
ResourceExtensionsTests.cs (2)
126builder.Configuration["Parameters:ElasticPassword"] = "p@ssw0rd1"; 159builder.Configuration["Parameters:ElasticPassword"] = "p@ssw0rd1";
Utils\VolumeNameGeneratorTests.cs (1)
17var volumePrefix = $"{Sanitize(builder.Environment.ApplicationName).ToLowerInvariant()}-{builder.Configuration["AppHost:Sha256"]!.ToLowerInvariant()[..10]}";
TestProject.AppHost (3)
TestProgram.cs (3)
53builder.Configuration["DcpPublisher:DeleteResourcesOnShutdown"] = "true"; 54builder.Configuration["DcpPublisher:ResourceNameSuffix"] = $"{Random.Shared.Next():x}"; 55builder.Configuration["DcpPublisher:RandomizePorts"] = randomizePorts.ToString(CultureInfo.InvariantCulture);
WithDockerfile.AppHost (1)
Program.cs (1)
5builder.Configuration["Parameters:goversion"] = "1.22"; // Just for validating parameter handling in Dockerfile builds.