263 references to AddInMemoryCollection
Aspire.Azure.AI.OpenAI.Tests (1)
ConformanceTests.cs (1)
58=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Azure.Data.Tables.Tests (1)
ConformanceTests.cs (1)
70=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Azure.Messaging.ServiceBus.Tests (2)
ConformanceTests_Queue.cs (1)
22=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
ConformanceTests_Topic.cs (1)
23=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Azure.Security.KeyVault.Tests (1)
ConformanceTests.cs (1)
64=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
71=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
73=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Confluent.Kafka.Tests (2)
ConsumerConformanceTests.cs (1)
26configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
ProducerConformanceTests.cs (1)
27configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
530builder.Configuration.AddInMemoryCollection(initialValues);
Aspire.Dashboard.Tests (4)
Integration\IntegrationTestHelpers.cs (1)
73.AddInMemoryCollection(initialData).Build();
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
46var config = new ConfigurationManager().AddInMemoryCollection(Configuration).Build();
Integration\StartupTests.cs (2)
156.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName }) 191.AddInMemoryCollection(new Dictionary<string, string?> { [DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] = fileConfigDirectory.FullName })
Aspire.Hosting (6)
DistributedApplicationBuilder.cs (6)
160_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 196_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 222_innerBuilder.Configuration.AddInMemoryCollection( 236_innerBuilder.Configuration.AddInMemoryCollection( 250_innerBuilder.Configuration.AddInMemoryCollection( 261_innerBuilder.Configuration.AddInMemoryCollection(
Aspire.Hosting.Azure.Tests (2)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
166hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 212hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.MySql.Tests (5)
MySqlFunctionalTests.cs (5)
91hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 164hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 234hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 340hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 410hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.PostgreSQL.Tests (4)
PostgresFunctionalTests.cs (4)
121hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 237hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 298hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 390hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
44hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 128hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 173hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Redis.Tests (7)
RedisFunctionalTests.cs (7)
103hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 314hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 350hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 400hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 435hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 484hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 514hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
183hb1.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 265hb2.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
178cfg.AddInMemoryCollection(additionalConfig);
Aspire.Hosting.Tests (14)
AddParameterTests.cs (5)
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?>
Dashboard\DashboardResourceTests.cs (7)
30builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 89builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 195builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 232builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 264builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 299builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 342builder.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Dcp\ApplicationExecutorTests.cs (1)
1057builder.AddInMemoryCollection(new Dictionary<string, string?>
Utils\TestDistributedApplicationBuilder.cs (1)
97cfg.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
34hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 95hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 146hb.Configuration.AddInMemoryCollection(new Dictionary<string, string?>
Aspire.Microsoft.Azure.Cosmos.Tests (1)
ConformanceTests.cs (1)
22=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Microsoft.Data.SqlClient.Tests (1)
ConformanceTests.cs (1)
61=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
ConformanceTests.cs (1)
30=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
ConformanceTests.cs (1)
74=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
ConformanceTests_TypeSpecificConfig.cs (1)
18=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Milvus.Client.Tests (2)
AspireMilvusExtensionTests.cs (1)
34builder.Configuration.AddInMemoryCollection(new[]
ConformanceTests.cs (1)
53=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[2]
Aspire.MySqlConnector.Tests (1)
ConformanceTests.cs (1)
67=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.NATS.Net.Tests (1)
ConformanceTests.cs (1)
52=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
ConformanceTests.cs (1)
88=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
ConformanceTests_TypeSpecificConfig.cs (1)
17=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Npgsql.Tests (1)
ConformanceTests.cs (1)
69=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.OpenAI.Tests (1)
ConformanceTests.cs (1)
50=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[]
Aspire.Oracle.EntityFrameworkCore.Tests (2)
ConformanceTests.cs (1)
70=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
ConformanceTests_TypeSpecificConfig.cs (1)
17=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[1]
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
ConformanceTests.cs (1)
84=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[2]
ConformanceTests_TypeSpecificConfig.cs (1)
17=> configuration.AddInMemoryCollection(new KeyValuePair<string, string?>[2]
Aspire.StackExchange.Redis.Tests (1)
AspireRedisExtensionsTests.cs (1)
181builder.Configuration.AddInMemoryCollection(configValues);
blazor-devserver (1)
Server\Program.cs (1)
44config.AddInMemoryCollection(inMemoryConfiguration);
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
73var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
Interop.FunctionalTests (2)
Http3\Http3TlsTests.cs (2)
407var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 439var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore (4)
WebApplicationBuilder.cs (4)
52Configuration.AddInMemoryCollection(new[] 115Configuration.AddInMemoryCollection(new[] 168Configuration.AddInMemoryCollection(new[] 259configuration.AddInMemoryCollection(new[]
Microsoft.AspNetCore.Authentication.Test (7)
AuthenticationMiddlewareTests.cs (1)
160builder.Configuration.AddInMemoryCollection(new[]
JwtBearerTests_Handler.cs (1)
1004var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
OpenIdConnect\OpenIdConnectTests.cs (5)
425var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 458var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 495var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 518var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 545var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
Hosting\WebAssemblyHostBuilderTest.cs (2)
23builder.Configuration.AddInMemoryCollection(new[] 193builder.Configuration.AddInMemoryCollection(new[]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
Logging\HttpLoggingServiceExtensionsTests.cs (1)
35var builder = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
66.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.AspNetCore.Hosting.Tests (31)
GenericWebHostBuilderTests.cs (1)
111config.AddInMemoryCollection(new[]
HostingEnvironmentExtensionsTests.cs (2)
19.AddInMemoryCollection(new Dictionary<string, string>() 66.AddInMemoryCollection(new Dictionary<string, string>()
WebHostBuilderTests.cs (16)
299var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 324configBuilder.AddInMemoryCollection( 344configBuilder.AddInMemoryCollection( 398.AddInMemoryCollection( 513.AddInMemoryCollection(settings) 539.AddInMemoryCollection(settings) 565.AddInMemoryCollection(settings) 574.AddInMemoryCollection(overrideSettings) 599.AddInMemoryCollection(vals); 628.AddInMemoryCollection(vals); 649.AddInMemoryCollection(vals); 1105configurationBuilder.AddInMemoryCollection( 1321.AddInMemoryCollection(new[] 1483.AddInMemoryCollection(vals); 1506.AddInMemoryCollection(vals); 1695.ConfigureAppConfiguration((context, configurationBuilder) => configurationBuilder.AddInMemoryCollection(
WebHostConfigurationsTests.cs (3)
25var config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build()); 40var config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build()); 51var config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
WebHostTests.cs (9)
57var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 76var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 96var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 127var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 201var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 240var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 276var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 819.AddInMemoryCollection(vals); 842.AddInMemoryCollection(vals);
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
SimpleWithWebApplicationBuilderTests.cs (1)
164builder.AddInMemoryCollection(config);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
166config.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerTests.cs (4)
755var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 838currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 866currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 914var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.Server.Kestrel.Tests (69)
ConfigurationReaderTests.cs (18)
32var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 45var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 77var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 98new ConfigurationBuilder().AddInMemoryCollection(new[] 120var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 133var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 144var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 155var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 224var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 240var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 257var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 273var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 286var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 301var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 316var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 345var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 370var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 383var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
HttpsConfigurationTests.cs (3)
87var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 125var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 157var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
KestrelConfigurationLoaderTests.cs (48)
41var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 62var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 123var config1 = new ConfigurationBuilder().AddInMemoryCollection(new[] 134var config2 = new ConfigurationBuilder().AddInMemoryCollection(new[] 170var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 216var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 256var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 314var config = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig.Concat(devCertConfig)).Build(); 321serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig.Concat(devCertConfig).Concat(defaultCertConfig)).Build(); 328serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig.Concat(devCertConfig)).Build(); 335serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig).Build(); 370var configRoot = new ConfigurationBuilder().AddInMemoryCollection(new[] 422var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 469var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 530var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 565var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 589var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 614var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 639var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 678var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 712var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 743var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 768var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 778config = new ConfigurationBuilder().AddInMemoryCollection(new[] 787config = new ConfigurationBuilder().AddInMemoryCollection(new[] 796config = new ConfigurationBuilder().AddInMemoryCollection(new[] 805config = new ConfigurationBuilder().AddInMemoryCollection(new[] 820var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 833config = new ConfigurationBuilder().AddInMemoryCollection(new[] 869var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 968var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1064var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1134var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1185var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1226var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1255var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1289var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1322var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1356var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1390var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1417var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1447var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1468var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1480serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(new[] 1507var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1516serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(new[] 1544var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1559serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFilesTestServer.cs (1)
19.AddInMemoryCollection(new[]
Microsoft.AspNetCore.Tests (19)
WebApplicationTests.cs (18)
415builder.AddInMemoryCollection(new Dictionary<string, string> 423builder.AddInMemoryCollection(new Dictionary<string, string> 431builder.AddInMemoryCollection(new Dictionary<string, string> 439builder.AddInMemoryCollection(new Dictionary<string, string> 447builder.AddInMemoryCollection(new Dictionary<string, string> 455builder.AddInMemoryCollection(new Dictionary<string, string> 1082builder.AddInMemoryCollection(new Dictionary<string, string> 1123config.AddInMemoryCollection(new Dictionary<string, string>() 1132config.AddInMemoryCollection(new Dictionary<string, string>() 1145config.AddInMemoryCollection(new Dictionary<string, string>() 1182config.AddInMemoryCollection(new Dictionary<string, string>() 1192config.AddInMemoryCollection(new Dictionary<string, string>() 1201builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1227config.AddInMemoryCollection(new Dictionary<string, string>() 1245builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1522builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> 2307builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> 2923.ConfigureAppConfiguration((context, configurationBuilder) => configurationBuilder.AddInMemoryCollection(
WebHostTests.cs (1)
63configBuilder.AddInMemoryCollection(new[]
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataExtensionsTests.cs (2)
73.AddInMemoryCollection(new Dictionary<string, string?> 99.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
47.AddInMemoryCollection(memoryConfigurationData)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
21.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
16.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
81return new ConfigurationBuilder().AddInMemoryCollection(configurationDict).Build();
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (1)
95.AddInMemoryCollection(new Dictionary<string, string?>
TcpEndpointProbesExtensionsTests.cs (2)
105.AddInMemoryCollection(new Dictionary<string, string?> 130.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Linux\AcceptanceTest.cs (3)
55.AddInMemoryCollection(config) 107.AddInMemoryCollection(config) 156.AddInMemoryCollection(config)
ResourceMonitoringExtensionsTests.cs (1)
150.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
55.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Hosting (4)
HostApplicationBuilder.cs (1)
161Configuration.AddInMemoryCollection(optionList);
HostingHostBuilderExtensions.cs (3)
40configBuilder.AddInMemoryCollection(new[] 60configBuilder.AddInMemoryCollection(new[] 229hostConfigBuilder.AddInMemoryCollection(new[]
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
111.AddInMemoryCollection(new Dictionary<string, string?>
Logging\Internal\TestConfiguration.cs (1)
19.AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Http.Resilience.Tests (1)
Routing\RoutingStrategyTest.cs (1)
168return new ConfigurationBuilder().AddInMemoryCollection(values.Select(pair => new KeyValuePair<string, string?>("section:" + pair.Key, pair.Value))).Build().GetSection("section");
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
DependencyInjectionExtensionsTests.cs (2)
27builder.AddInMemoryCollection(new[] 45builder.AddInMemoryCollection(new[]
Microsoft.Extensions.ServiceDiscovery.Tests (4)
ConfigurationServiceEndpointResolverTests.cs (4)
23var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 58var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 139var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 243var config = new ConfigurationBuilder().AddInMemoryCollection(data);
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (4)
YarpServiceDiscoveryTests.cs (4)
56var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 87var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 119var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 199var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Telemetry.Tests (2)
Latency\LatencyConsoleExtensionsTests.cs (1)
70.AddInMemoryCollection(new Dictionary<string, string?>
Latency\LatencyContextExtensionTests.cs (1)
123.AddInMemoryCollection(new Dictionary<string, string?>
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
904var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
33.AddInMemoryCollection(metadataAttributes);
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
33.AddInMemoryCollection(metadataAttributes);
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
33.AddInMemoryCollection(metadataAttributes);
Templates.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
33.AddInMemoryCollection(metadataAttributes);