5 references to AddApplicationMetadata
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataHostBuilderExtensions.cs (1)
32
.ConfigureAppConfiguration((hostBuilderContext, configurationBuilder) => configurationBuilder.
AddApplicationMetadata
(hostBuilderContext.HostingEnvironment, sectionName))
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
ApplicationMetadataExtensionsTests.cs (4)
43
Assert.Throws<ArgumentNullException>(() => new ConfigurationBuilder().
AddApplicationMetadata
(null!));
44
Assert.Throws<ArgumentNullException>(() => ((IConfigurationBuilder)null!).
AddApplicationMetadata
(null!));
54
var act = () => new ConfigurationBuilder().
AddApplicationMetadata
(_hostEnvironment.Object, sectionName!);
81
var actualConfig = new ConfigurationBuilder().
AddApplicationMetadata
(_hostEnvironment.Object, nameof(ApplicationMetadata)).Build();