30 references to None
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\LoggingRedactionOptions.cs (1)
55/// If you don't want a parameter to be redacted, mark it as <see cref="DataClassification.None"/>.
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (7)
Logging\AcceptanceTests.cs (4)
277x.RequestHeadersDataClasses.Add(HeaderNames.Accept, DataClassification.None); 278x.ResponseHeadersDataClasses.Add(HeaderNames.TransferEncoding, DataClassification.None); 348x.RequestHeadersDataClasses.Add(HeaderNames.Accept, DataClassification.None); 349x.ResponseHeadersDataClasses.Add(HeaderNames.TransferEncoding, DataClassification.None);
Logging\AcceptanceTests.Mvc.cs (1)
137x.RouteParameterDataClasses.Add(new(NoDataClassParamName, DataClassification.None));
Logging\RequestHeadersEnricherExtensionsTests.cs (2)
32.AddRequestHeadersLogEnricher(e => e.HeadersDataClasses.Add("TestKey", DataClassification.None)) 58e.HeadersDataClasses.Add("TestKey", DataClassification.None);
Microsoft.Extensions.Compliance.Abstractions (2)
Classification\DataClassification.cs (1)
17public static DataClassification None => new(nameof(None));
Classification\NoDataClassificationAttribute.cs (1)
15: base(DataClassification.None)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Classification\DataClassificationTests.cs (1)
49Assert.Equal("None", DataClassification.None.ToString());
Classification\NoDataClassificationAttributeTests.cs (1)
14Assert.Equal(DataClassification.None, attribute.Classification);
Microsoft.Extensions.Compliance.Redaction (2)
RedactorProvider.cs (2)
40if (!map.ContainsKey(DataClassification.None)) 42map.Add(DataClassification.None, typeof(NullRedactor));
Microsoft.Extensions.Compliance.Redaction.Tests (2)
RedactorProviderTests.cs (2)
20Assert.IsType<NullRedactor>(redactorProvider.GetRedactor(DataClassification.None)); 54Redactor r4 = redactorProvider.GetRedactor(DataClassification.None);
Microsoft.Extensions.Http.Diagnostics (2)
Logging\LoggingOptions.cs (2)
98/// If the data class is <see cref="DataClassification.None"/>, no redaction will be done. 112/// If the data class is <see cref="DataClassification.None"/>, no redaction will be done.
Microsoft.Extensions.Telemetry (6)
Http\HttpRouteFormatter.cs (4)
137classification != DataClassification.None) 145if (parametersToRedact.TryGetValue(segment.ParamName, out DataClassification classification) && classification != DataClassification.None) 203if (classification != DataClassification.None) 244&& classification != DataClassification.None)
Http\HttpRouteParser.cs (2)
274if (classification != DataClassification.None) 304&& classification != DataClassification.None)
Microsoft.Extensions.Telemetry.Tests (6)
Http\HttpParserTests.cs (2)
251parametersToRedact.Add("routeId", DataClassification.None); 262parametersToRedact.Add("chatId", DataClassification.None);
Http\HttpRouteFormatterTests.cs (4)
220{ "userId", DataClassification.None }, 221{ "routeId", DataClassification.None }, 222{ "chatId", DataClassification.None }, 242{ "routeId", DataClassification.None },