34 references to GetStructuredStateValue
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Logging\FakeLoggerTests.cs (4)
94Assert.Equal("V0", logger.LatestRecord.GetStructuredStateValue("K0")); 95Assert.Equal("V1", logger.LatestRecord.GetStructuredStateValue("K1")); 96Assert.Equal("[\"0\",\"1\",\"2\"]", logger.LatestRecord.GetStructuredStateValue("K3")); 115Assert.Null(logger.LatestRecord.GetStructuredStateValue("K0"));
Microsoft.Extensions.Telemetry.Tests (30)
Logging\ExtendedLoggerTests.cs (30)
85Assert.Equal("SEV1", snap[0].GetStructuredStateValue("SEK1")); 86Assert.Equal("EV1", snap[0].GetStructuredStateValue("EK1")); 90Assert.Null(snap[0].GetStructuredStateValue("SEK1")); 91Assert.Null(snap[0].GetStructuredStateValue("EK1")); 98Assert.Equal("PV2", snap[1].GetStructuredStateValue("PK2")); 102Assert.Equal("REDACTED<PV3>", snap[1].GetStructuredStateValue("PK3")); 106Assert.Equal("PV3", snap[1].GetStructuredStateValue("PK3")); 109Assert.Null(snap[1].GetStructuredStateValue("PK4")); 113Assert.Equal("SEV1", snap[1].GetStructuredStateValue("SEK1")); 114Assert.Equal("EV1", snap[1].GetStructuredStateValue("EK1")); 118Assert.Null(snap[1].GetStructuredStateValue("SEK1")); 119Assert.Null(snap[1].GetStructuredStateValue("EK1")); 199Assert.Equal("EV1", snap[0].GetStructuredStateValue("EK1")); 200Assert.Equal("EV2", snap[0].GetStructuredStateValue("EK2")); 206Assert.Equal("PV2", snap[1].GetStructuredStateValue("PK2")); 207Assert.Equal("EV1", snap[1].GetStructuredStateValue("EK1")); 208Assert.Equal("EV2", snap[1].GetStructuredStateValue("EK2")); 264Assert.Equal("EV1", snap[0].GetStructuredStateValue("EK1")); 265Assert.Equal("SEV1", snap[0].GetStructuredStateValue("SEK1")); 271Assert.Equal("EV1", snap[1].GetStructuredStateValue("EK1")); 272Assert.Equal("SEV1", snap[1].GetStructuredStateValue("SEK1")); 278Assert.Equal("EV1", snap[2].GetStructuredStateValue("EK1")); 279Assert.Equal("SEV1", snap[2].GetStructuredStateValue("SEK1")); 285Assert.Equal("EV1", snap[3].GetStructuredStateValue("EK1")); 286Assert.Equal("SEV1", snap[3].GetStructuredStateValue("SEK1")); 324Assert.Equal("V1", snap[0].GetStructuredStateValue("K1")); 393Assert.Equal("PAYLOAD", snap[0].GetStructuredStateValue("{OriginalFormat}")); 518var exceptionType = snap[3].GetStructuredStateValue("exception.type")!; 521var stackTrace = snap[3].GetStructuredStateValue("exception.stacktrace")!; 529var exceptionMessage = snap[3].GetStructuredStateValue("exception.message");