Implemented interface member:
property
this
Microsoft.Extensions.Configuration.IConfiguration.this[System.String]
104 writes to
Aspire.Hosting.Azure.Tests (13)
AzureBicepProvisionerTests.cs (2)
42builder.Configuration["Parameters:param"] = "paramValue"; 181config["Parameters"] = parameters0.ToJsonString();
AzureBicepResourceTests.cs (8)
758builder.Configuration["Parameters:skuName"] = "Standard_ZRS"; 797builder.Configuration["Parameters:skuName"] = "Standard_ZRS"; 1276builder.Configuration["Parameters:usr"] = "user"; 1277builder.Configuration["Parameters:pwd"] = "password"; 1394builder.Configuration["Parameters:usr"] = "user"; 1395builder.Configuration["Parameters:pwd"] = "password"; 1503builder.Configuration["Parameters:usr"] = "user"; 1504builder.Configuration["Parameters:pwd"] = "password";
AzureCosmosDBEmulatorFunctionalTests.cs (1)
93hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.GetValueAsync(default);
AzureEventHubsExtensionsTests.cs (1)
78hb.Configuration["ConnectionStrings:eventhubns"] = await eventHub.Resource.ConnectionStringExpression.GetValueAsync(CancellationToken.None);
AzureStorageEmulatorFunctionalTests.cs (1)
78hb.Configuration["ConnectionStrings:BlobConnection"] = await storage.Resource.ConnectionStringExpression.GetValueAsync(CancellationToken.None);
Aspire.Hosting.Containers.Tests (7)
WithDockerfileTests.cs (7)
29builder.Configuration["Parameters:secret"] = "open sesame from env"; 165builder.Configuration["Parameters:message"] = "hello"; 213builder.Configuration["Parameters:message"] = "hello"; 260builder.Configuration["Parameters:secret"] = "open sesame"; 306builder.Configuration["Parameters:secret"] = "open sesame"; 349builder.Configuration["Parameters:message"] = "hello"; 420builder.Configuration["Parameters:message"] = "hello";
Aspire.Hosting.Elasticsearch.Tests (5)
AddElasticsearchTests.cs (1)
79appBuilder.Configuration["Parameters:pass"] = "pass";
ElasticsearchFunctionalTests.cs (4)
47hb.Configuration[$"ConnectionStrings:{elasticsearch.Resource.Name}"] = await elasticsearch.Resource.ConnectionStringExpression.GetValueAsync(default); 110hb.Configuration[$"ConnectionStrings:{elasticsearch1.Resource.Name}"] = await elasticsearch1.Resource.ConnectionStringExpression.GetValueAsync(default); 135builder2.Configuration["Parameters:pwd"] = password; 155hb.Configuration[$"ConnectionStrings:{elasticsearch2.Resource.Name}"] = await elasticsearch2.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.Garnet.Tests (3)
GarnetFunctionalTests.cs (3)
78hb.Configuration[$"ConnectionStrings:{garnet.Resource.Name}"] = await garnet.Resource.ConnectionStringExpression.GetValueAsync(default); 157hb.Configuration[$"ConnectionStrings:{garnet1.Resource.Name}"] = $"{await garnet1.Resource.ConnectionStringExpression.GetValueAsync(default)}"; 208hb.Configuration[$"ConnectionStrings:{garnet2.Resource.Name}"] = $"{await garnet2.Resource.ConnectionStringExpression.GetValueAsync(default)}";
Aspire.Hosting.Kafka.Tests (3)
KafkaFunctionalTests.cs (3)
76hb.Configuration[$"ConnectionStrings:{kafka.Resource.Name}"] = await kafka.Resource.ConnectionStringExpression.GetValueAsync(default); 169hb.Configuration[$"ConnectionStrings:{kafka1.Resource.Name}"] = await kafka1.Resource.ConnectionStringExpression.GetValueAsync(default); 221hb.Configuration[$"ConnectionStrings:{kafka2.Resource.Name}"] = await kafka2.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.Milvus.Tests (10)
AddMilvusTests.cs (6)
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"; 184builder.Configuration["Parameters:apikey"] = "pass";
MilvusFunctionalTests.cs (4)
36hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.GetValueAsync(default); 110hb.Configuration[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.GetValueAsync(default); 134builder2.Configuration["Parameters:pwd"] = password; 158hb.Configuration[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.MongoDB.Tests (5)
MongoDbFunctionalTests.cs (5)
89hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.GetValueAsync(default); 149hb.Configuration[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.GetValueAsync(default); 173builder2.Configuration["Parameters:pwd"] = password; 196hb.Configuration[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.GetValueAsync(default); 317hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
77appBuilder.Configuration["Parameters:pass"] = "pass";
MySqlFunctionalTests.cs (1)
210builder2.Configuration["Parameters:pwd"] = password;
Aspire.Hosting.Nats.Tests (7)
NatsFunctionalTests.cs (7)
41hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = await nats.Resource.ConnectionStringExpression.GetValueAsync(default); 87hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = connectionString; 114builder.Configuration["Parameters:user"] = "user"; 115builder.Configuration["Parameters:pass"] = "password"; 135hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = modifiedConnectionString; 192hb.Configuration[$"ConnectionStrings:{nats1.Resource.Name}"] = await nats1.Resource.ConnectionStringExpression.GetValueAsync(default); 240hb.Configuration[$"ConnectionStrings:{nats2.Resource.Name}"] = await nats2.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.Oracle.Tests (7)
AddOracleTests.cs (2)
76appBuilder.Configuration["Parameters:pass"] = "pass"; 158appBuilder.Configuration["Parameters:pass"] = "pass";
OracleFunctionalTests.cs (5)
52hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.GetValueAsync(default); 135hb.Configuration[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.GetValueAsync(default); 171builder2.Configuration["Parameters:pwd"] = password; 196hb.Configuration[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.GetValueAsync(default); 310hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.PostgreSQL.Tests (6)
AddPostgresTests.cs (2)
101appBuilder.Configuration["Parameters:pass"] = "pass"; 192appBuilder.Configuration["Parameters:pass"] = "pass";
PostgresFunctionalTests.cs (4)
208builder1.Configuration["Parameters:user"] = username; 209builder1.Configuration["Parameters:pwd"] = password; 276builder2.Configuration["Parameters:user"] = username; 277builder2.Configuration["Parameters:pwd"] = password;
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
116builder.Configuration["ConnectionStrings:connectionString"] = "test";
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 (5)
AddRabbitMQTests.cs (1)
95appBuilder.Configuration["Parameters:pass"] = "p@ssw0rd1";
RabbitMQFunctionalTests.cs (4)
74hb.Configuration[$"ConnectionStrings:{rabbitMQ.Resource.Name}"] = await rabbitMQ.Resource.ConnectionStringExpression.GetValueAsync(default); 134hb.Configuration[$"ConnectionStrings:{rabbitMQ1.Resource.Name}"] = await rabbitMQ1.Resource.ConnectionStringExpression.GetValueAsync(default); 172builder2.Configuration["Parameters:pwd"] = password; 191hb.Configuration[$"ConnectionStrings:{rabbitMQ2.Resource.Name}"] = await rabbitMQ2.Resource.ConnectionStringExpression.GetValueAsync(default);
Aspire.Hosting.Redis.Tests (2)
RedisFunctionalTests.cs (2)
138builder1.Configuration[$"DcpPublisher:ResourceNameSuffix"] = randomResourceSuffix; 179builder2.Configuration[$"DcpPublisher:ResourceNameSuffix"] = randomResourceSuffix;
Aspire.Hosting.SqlServer.Tests (4)
AddSqlServerTests.cs (2)
83appBuilder.Configuration["Parameters:pass"] = "p@ssw0rd1"; 105appBuilder.Configuration["Parameters:pass"] = "p@ssw0rd1";
SqlServerFunctionalTests.cs (2)
81hb.Configuration[$"ConnectionStrings:{tempDb.Resource.Name}"] = await tempDb.Resource.ConnectionStringExpression.GetValueAsync(default); 244builder2.Configuration["Parameters:pwd"] = password;
Aspire.Hosting.Tests (9)
AddParameterTests.cs (1)
20appBuilder.Configuration["Parameters:pass"] = "pass1";
Codespaces\CodespacesUrlRewriterTests.cs (4)
20builder.Configuration["CODESPACES"] = "false"; 62builder.Configuration["CODESPACES"] = "true"; 63builder.Configuration["GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN"] = "app.github.dev"; 64builder.Configuration["CODESPACE_NAME"] = "test-codespace";
ResourceExtensionsTests.cs (2)
200builder.Configuration["Parameters:ElasticPassword"] = "p@ssw0rd1"; 233builder.Configuration["Parameters:ElasticPassword"] = "p@ssw0rd1";
WithEnvironmentTests.cs (1)
108builder.Configuration["Parameters:parameter"] = "MY_PARAMETER_VALUE";
WithReferenceTests.cs (1)
183builder.Configuration["ConnectionStrings:resource"] = "test connection string";
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationExtensions.cs (1)
31builder.Configuration[$"Parameters:{parameter.Name}"] = parameter.Secret
Microsoft.AspNetCore (1)
ConfigureWebHostBuilder.cs (1)
161_configuration[key] = value;
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
148builder.Configuration["EnableStaticAssetsDevelopmentCaching"] = "true"; 258builder.Configuration["EnableStaticAssetsDevelopmentIntegrity"] = "true";
Microsoft.AspNetCore.Tests (4)
WebApplicationTests.cs (4)
1442builder.Configuration["FORWARDEDHEADERS_ENABLED"] = "true"; 2250builder.Configuration[WebHostDefaults.ApplicationKey] = nameof(WebApplicationTests); 2251builder.Configuration[WebHostDefaults.EnvironmentKey] = envName; 2252builder.Configuration[WebHostDefaults.ContentRootKey] = contentRoot;
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.
84 references to
Aspire.Azure.Security.KeyVault.Tests (2)
AspireKeyVaultExtensionsTests.cs (2)
142Assert.Equal("Secret 1 Value", builder.Configuration["super-secret-1"]); 143Assert.Equal("Secret 2 Value", builder.Configuration["super-secret-2"]);
Aspire.Dashboard.Tests (3)
Integration\StartupTests.cs (3)
170Assert.Equal(frontendBrowserToken, localBuilder.Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey]); 203var initialBrowserTokenProvidedByConfiguration = localBuilder?.Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey]; 214var updatedBrowserTokenProvidedByConfiguration = localBuilder?.Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey];
Aspire.Hosting (5)
DistributedApplicationBuilder.cs (3)
167_executionContextOptions = _innerBuilder.Configuration["Publishing:Publisher"] switch 230if (_innerBuilder.Configuration[KnownConfigNames.DashboardFrontendBrowserToken] is not { Length: > 0 } browserToken) 244if (_innerBuilder.Configuration[KnownConfigNames.DashboardResourceServiceClientApiKey] is not { Length: > 0 } apiKey)
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.Tests (4)
Utils\TestDistributedApplicationBuilder.cs (1)
47$"{VolumeNameGenerator.Sanitize(Environment.ApplicationName).ToLowerInvariant()}-{Configuration["AppHost:Sha256"]!.ToLowerInvariant()[..10]}";
Utils\VolumeNameGeneratorTests.cs (3)
17var volumePrefix = $"{Sanitize(builder.Environment.ApplicationName).ToLowerInvariant()}-{builder.Configuration["AppHost:Sha256"]!.ToLowerInvariant()[..10]}"; 58var runVolumePrefix = $"{Sanitize(runBuilder.Environment.ApplicationName).ToLowerInvariant()}-{runBuilder.Configuration["AppHost:Sha256"]!.ToLowerInvariant()[..10]}"; 59var publishVolumePrefix = $"{Sanitize(publishBuilder.Environment.ApplicationName).ToLowerInvariant()}-{publishBuilder.Configuration["AppHost:Sha256"]!.ToLowerInvariant()[..10]}";
Microsoft.AspNetCore (40)
ConfigureHostBuilder.cs (10)
64var previousApplicationName = _configuration[HostDefaults.ApplicationKey]; 67var previousContentRootConfig = _configuration[HostDefaults.ContentRootKey]; 68var previousEnvironment = _configuration[HostDefaults.EnvironmentKey]; 75if (!string.Equals(previousApplicationName, _configuration[HostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 77throw new NotSupportedException($"The application name changed from \"{previousApplicationName}\" to \"{_configuration[HostDefaults.ApplicationKey]}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 80if (!string.Equals(previousContentRootConfig, _configuration[HostDefaults.ContentRootKey], StringComparison.OrdinalIgnoreCase) 81&& !string.Equals(previousContentRoot, HostingPathResolver.ResolvePath(_configuration[HostDefaults.ContentRootKey]), StringComparison.OrdinalIgnoreCase)) 83throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(_configuration[HostDefaults.ContentRootKey])}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 86if (!string.Equals(previousEnvironment, _configuration[HostDefaults.EnvironmentKey], StringComparison.OrdinalIgnoreCase)) 88throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{_configuration[HostDefaults.EnvironmentKey]}\". Changing the host configuration using WebApplicationBuilder.Host is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead.");
ConfigureWebHostBuilder.cs (25)
40var previousContentRootConfig = _configuration[WebHostDefaults.ContentRootKey]; 42var previousWebRootConfig = _configuration[WebHostDefaults.WebRootKey]; 43var previousApplication = _configuration[WebHostDefaults.ApplicationKey]; 44var previousEnvironment = _configuration[WebHostDefaults.EnvironmentKey]; 45var previousHostingStartupAssemblies = _configuration[WebHostDefaults.HostingStartupAssembliesKey]; 46var previousHostingStartupAssembliesExclude = _configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey]; 51if (!string.Equals(previousWebRootConfig, _configuration[WebHostDefaults.WebRootKey], StringComparison.OrdinalIgnoreCase) 52&& !string.Equals(HostingPathResolver.ResolvePath(previousWebRoot, previousContentRoot), HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.WebRootKey], previousContentRoot), StringComparison.OrdinalIgnoreCase)) 55throw new NotSupportedException($"The web root changed from \"{HostingPathResolver.ResolvePath(previousWebRoot, previousContentRoot)}\" to \"{HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.WebRootKey], previousContentRoot)}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 57else if (!string.Equals(previousApplication, _configuration[WebHostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 60throw new NotSupportedException($"The application name changed from \"{previousApplication}\" to \"{_configuration[WebHostDefaults.ApplicationKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 62else if (!string.Equals(previousContentRootConfig, _configuration[WebHostDefaults.ContentRootKey], StringComparison.OrdinalIgnoreCase) 63&& !string.Equals(previousContentRoot, HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.ContentRootKey]), StringComparison.OrdinalIgnoreCase)) 66throw new NotSupportedException($"The content root changed from \"{previousContentRoot}\" to \"{HostingPathResolver.ResolvePath(_configuration[WebHostDefaults.ContentRootKey])}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 68else if (!string.Equals(previousEnvironment, _configuration[WebHostDefaults.EnvironmentKey], StringComparison.OrdinalIgnoreCase)) 71throw new NotSupportedException($"The environment changed from \"{previousEnvironment}\" to \"{_configuration[WebHostDefaults.EnvironmentKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 73else if (!string.Equals(previousHostingStartupAssemblies, _configuration[WebHostDefaults.HostingStartupAssembliesKey], StringComparison.OrdinalIgnoreCase)) 76throw new NotSupportedException($"The hosting startup assemblies changed from \"{previousHostingStartupAssemblies}\" to \"{_configuration[WebHostDefaults.HostingStartupAssembliesKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 78else if (!string.Equals(previousHostingStartupAssembliesExclude, _configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey], StringComparison.OrdinalIgnoreCase)) 81throw new NotSupportedException($"The hosting startup assemblies exclude list changed from \"{previousHostingStartupAssembliesExclude}\" to \"{_configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey]}\". Changing the host configuration using WebApplicationBuilder.WebHost is not supported. Use WebApplication.CreateBuilder(WebApplicationOptions) instead."); 104return _configuration[key]; 118var previousApplication = _configuration[WebHostDefaults.ApplicationKey]; 119var previousEnvironment = _configuration[WebHostDefaults.EnvironmentKey]; 120var previousHostingStartupAssemblies = _configuration[WebHostDefaults.HostingStartupAssembliesKey]; 121var previousHostingStartupAssembliesExclude = _configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey];
WebApplicationBuilder.cs (5)
222webHostBuilder.UseSetting(WebHostDefaults.PreventHostingStartupKey, Configuration[WebHostDefaults.PreventHostingStartupKey]); 223webHostBuilder.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, Configuration[WebHostDefaults.HostingStartupAssembliesKey]); 224webHostBuilder.UseSetting(WebHostDefaults.HostingStartupExcludeAssembliesKey, Configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey]); 244if (options.ContentRootPath is null && configuration[HostDefaults.ContentRootKey] is null) 300if (configuration[reloadConfigOnChangeKey] is string reloadConfigOnChange)
Microsoft.AspNetCore.Tests (19)
WebApplicationTests.cs (19)
176Assert.Equal("http://localhost:5001", builder.Configuration["urls"]); 1029Assert.Equal("command_line_one", builder.Configuration["one"]); 1030Assert.Equal("unprefixed_two", builder.Configuration["two"]); 1031Assert.Equal("DOTNET_three", builder.Configuration["three"]); 1032Assert.Equal("ASPNETCORE_four", builder.Configuration["four"]); 1043Assert.Equal("1", builder.Configuration["x"]); 1044Assert.Equal("Larry", builder.Configuration["name"]); 1045Assert.Equal("20", builder.Configuration["age"]); 1046Assert.Equal("Testing", builder.Configuration["environment"]); 1109Assert.Equal("value", builder.Configuration["A"]); 1110Assert.Equal("another", builder.Configuration["B"]); 1164Assert.Equal("A", builder.Configuration["A"]); 1165Assert.Equal("B", builder.Configuration["B"]); 1166Assert.Equal("C", builder.Configuration["C"]); 1167Assert.Equal("D", builder.Configuration["D"]); 1168Assert.Equal("E", builder.Configuration["E"]); 1169Assert.Equal("F", builder.Configuration["F"]); 1429Assert.Equal("bar", builder.Configuration["foo"]); 1527Assert.Equal("bar", builder.Configuration["foo"]);
Microsoft.Extensions.Hosting (9)
HostApplicationBuilder.cs (9)
91if (settings.ContentRootPath is null && Configuration[HostDefaults.ContentRootKey] is null) 276string? previousApplicationName = config[HostDefaults.ApplicationKey]; 277string? previousEnvironment = config[HostDefaults.EnvironmentKey]; 278string? previousContentRootConfig = config[HostDefaults.ContentRootKey]; 288if (!string.Equals(previousApplicationName, config[HostDefaults.ApplicationKey], StringComparison.OrdinalIgnoreCase)) 290throw new NotSupportedException(SR.Format(SR.ApplicationNameChangeNotSupported, previousApplicationName, config[HostDefaults.ApplicationKey])); 292if (!string.Equals(previousEnvironment, config[HostDefaults.EnvironmentKey], StringComparison.OrdinalIgnoreCase)) 294throw new NotSupportedException(SR.Format(SR.EnvironmentNameChangeNotSupoprted, previousEnvironment, config[HostDefaults.EnvironmentKey])); 298string? currentContentRootConfig = config[HostDefaults.ContentRootKey];
OpenAIEndToEnd.WebStory (1)
Program.cs (1)
11var openAiDeploymentName = builder.Configuration["OpenAI:DeploymentName"];