4 instantiations of JsonConfigurationSource
dotnet-user-secrets (1)
Internal\ReadableJsonConfigurationSource.cs (1)
16: base(new JsonConfigurationSource())
Microsoft.Extensions.Caching.Hybrid.Tests (2)
ServiceConstructionTests.cs (2)
58var source = new JsonConfigurationSource { Path = "BasicConfig.json" }; 71var source = new JsonConfigurationSource { Path = "BasicConfig.json" };
Microsoft.Extensions.Telemetry.Tests (1)
Logging\TestConfiguration.cs (1)
24var provider = new TestConfiguration(new JsonConfigurationSource { Optional = true }, getJson);
11 references to JsonConfigurationSource
Microsoft.AspNetCore.Tests (6)
WebApplicationTests.cs (6)
705Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "appsettings.json"); 709Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "appsettings.Development.json"); 713Assert.DoesNotContain(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "appsettings.Development.json"); 730Assert.DoesNotContain(config.Sources, source => source is JsonConfigurationSource jsonSource); 763Assert.Contains(config.Sources, source => source is JsonConfigurationSource jsonSource && jsonSource.Path == "secrets.json"); 779Assert.DoesNotContain(config.Sources, source => source is JsonConfigurationSource jsonSource);
Microsoft.Extensions.Caching.Hybrid.Tests (2)
ServiceConstructionTests.cs (2)
58var source = new JsonConfigurationSource { Path = "BasicConfig.json" }; 71var source = new JsonConfigurationSource { Path = "BasicConfig.json" };
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationExtensions.cs (1)
90public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, Action<JsonConfigurationSource>? configureSource)
JsonConfigurationProvider.cs (1)
20public JsonConfigurationProvider(JsonConfigurationSource source) : base(source) { }
Microsoft.Extensions.Telemetry.Tests (1)
Logging\TestConfiguration.cs (1)
16public TestConfiguration(JsonConfigurationSource source, Func<string> json)