10 references to StatusCode
Microsoft.Extensions.Http.Diagnostics (2)
Logging\HttpClientLoggingTagNames.cs (1)
74StatusCode
Logging\Internal\Log.cs (1)
108loggerMessageState.TagArray[index++] = new(HttpClientLoggingTagNames.StatusCode, record.StatusCode.Value);
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Logging\AcceptanceTests.cs (1)
378state.Should().ContainSingle(kvp => kvp.Key == HttpClientLoggingTagNames.StatusCode)
Logging\HttpClientLoggerTest.cs (7)
247logRecordState.Contains(HttpClientLoggingTagNames.StatusCode, expectedLogRecord.StatusCode.Value.ToString(CultureInfo.InvariantCulture)); 344logRecordRequest.NotContains(HttpClientLoggingTagNames.StatusCode); 353logRecordFull.Contains(HttpClientLoggingTagNames.StatusCode, expectedLogRecord.StatusCode.Value.ToString(CultureInfo.InvariantCulture)); 450logRecordState.NotContains(HttpClientLoggingTagNames.StatusCode); 565logRecordState.NotContains(HttpClientLoggingTagNames.StatusCode); 654logRecordState.Contains(HttpClientLoggingTagNames.StatusCode, expectedLogRecord.StatusCode.Value.ToString(CultureInfo.InvariantCulture)); 927logRecord.Contains(HttpClientLoggingTagNames.StatusCode, expectedLogRecord.StatusCode.Value.ToString(CultureInfo.InvariantCulture));