7 writes to EnvironmentName
Microsoft.Extensions.AmbientMetadata.Application.Tests (6)
ApplicationMetadataExtensionsTests.cs (3)
93EnvironmentName = _fixture.Create<string>(), 125EnvironmentName = _fixture.Create<string>(), 134m.EnvironmentName = expectedMetadata.EnvironmentName;
ApplicationMetadataTests.cs (1)
50_sut.EnvironmentName = testValue;
ApplicationMetadataValidatorTests.cs (2)
25new ApplicationMetadata { ApplicationName = "test", EnvironmentName = "test2" }); 43var applicationMetadata = new ApplicationMetadata { EnvironmentName = null! };
Microsoft.Extensions.Telemetry.Tests (1)
Enrichment\ApplicationLogEnricherTests.cs (1)
71EnvironmentName = _hostMock.Object.EnvironmentName
11 references to EnvironmentName
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataSource.cs (1)
46{ $"{SectionName}:{nameof(ApplicationMetadata.EnvironmentName)}", _hostEnvironment.EnvironmentName },
Microsoft.Extensions.AmbientMetadata.Application.Tests (8)
AcceptanceTests.cs (1)
36options.EnvironmentName.Should().Be(hostEnvironment.EnvironmentName);
ApplicationMetadataExtensionsTests.cs (4)
76[$"{nameof(ApplicationMetadata)}:{nameof(ApplicationMetadata.EnvironmentName)}"] = TestEnvironmentName, 102[$"{nameof(ApplicationMetadata)}:{nameof(ApplicationMetadata.EnvironmentName)}"] = expectedMetadata.EnvironmentName, 134m.EnvironmentName = expectedMetadata.EnvironmentName;
ApplicationMetadataSourceTests.cs (1)
59var result = provider.TryGet($"{testSectionName}:{nameof(ApplicationMetadata.EnvironmentName)}", out var actualEnvironmentName);
ApplicationMetadataTests.cs (2)
30applicationMetadata.EnvironmentName.Should().BeEmpty(); 52_sut.EnvironmentName.Should().Be(testValue);
Microsoft.Extensions.Telemetry (2)
Enrichment\ApplicationLogEnricher.cs (1)
45l.Add(new(ApplicationEnricherTags.EnvironmentName, applicationMetadata.EnvironmentName));
Enrichment\ApplicationLogEnricherOptions.cs (1)
14/// Gets or sets a value indicating whether <see cref="ApplicationMetadata.EnvironmentName"/> is used for logs enrichment.