88 instantiations of PrivateDataAttribute
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\ApiRoutingController.cs (1)
22
[FromRoute][
PrivateData
] string userId,
Logging\AttributeRoutingController.cs (2)
20
public IActionResult GetWithConstraint([
PrivateData
] string param) => Ok(param);
23
public IActionResult GetWithNullableConstraint([
PrivateData
] int? param) => Ok(param);
Logging\ConventionalRoutingController.cs (1)
17
public IActionResult GetEntity([
PrivateData
] int param) => Ok(param);
Logging\MixedRoutingController.cs (2)
17
public IActionResult AttributeRoutingWithConstraint([
PrivateData
] int param) => Ok(param);
20
public IActionResult AttributeRoutingWithNullableConstraint([
PrivateData
] int? param) => Ok(param);
Logging\TestController.cs (5)
19
public async Task<IActionResult> GetTest1Async([
PrivateData
] string userId)
28
public async Task<IActionResult> GetTest2Async([
PrivateData
] string userId, [
PrivateData
] string teamId)
37
public async Task<IActionResult> GetTest3Async([
PrivateData
] string userId, [
PrivateData
] string teamId, string chatId)
Microsoft.Extensions.Compliance.Testing.Tests (1)
AttributeTests.cs (1)
16
a = new
PrivateDataAttribute
();
Microsoft.Gen.Logging.Generated.Tests (76)
test\Generators\Microsoft.Gen.Logging\TestClasses\AtSymbolsTestExtensions.cs (1)
22
internal static partial void M1(ILogger logger, [
PrivateData
] string @myevent1);
test\Generators\Microsoft.Gen.Logging\TestClasses\AttributeTestExtensions.cs (23)
17
public static partial void M1(ILogger logger, [
PrivateData
] string p0, string p1);
20
public static partial void M2(ILogger logger, [
PrivateData
] string p0, [In] string p1);
25
[
PrivateData
] string p0,
26
[
PrivateData
] string p1,
27
[
PrivateData
] string p2,
28
[
PrivateData
] string p3);
33
[
PrivateData
] string p0,
34
[
PrivateData
] string p1,
35
[
PrivateData
] string p2,
36
[
PrivateData
] NonFormattable p3);
42
[
PrivateData
] string p0,
43
[
PrivateData
] string p1,
44
[
PrivateData
] string p2,
45
[
PrivateData
] string p3,
46
[
PrivateData
] string p4,
47
[
PrivateData
] string p5,
48
[
PrivateData
] string p6,
49
[
PrivateData
] string p7,
57
[
PrivateData
] string p0, string p1);
61
[
PrivateData
] string p0, string p1);
64
public static partial void M8(ILogger logger, [
PrivateData
] int p0);
67
public static partial void M9(ILogger logger, [
PrivateData
] CustomToStringTestClass p0);
70
public static partial void M10(ILogger logger, [
PrivateData
] NonFormattable p0);
test\Generators\Microsoft.Gen.Logging\TestClasses\DataClassificationTestExtensions.cs (3)
16
[
PrivateData
]
26
public static partial void M1(ILogger logger, [PublicData,
PrivateData
] string p1, [PublicData] string p2);
29
public static partial void M2(ILogger logger, [LogProperties] C1 p1, [
PrivateData
] C1 p2);
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesNullHandlingExtensions.cs (5)
20
[
PrivateData
]
23
[
PrivateData
]
26
[
PrivateData
]
29
[
PrivateData
]
32
[
PrivateData
]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesRedactionExtensions.cs (8)
15
[
PrivateData
]
21
[
PrivateData
]
37
[
PrivateData
]
40
[
PrivateData
]
51
[
PrivateData
]
61
[
PrivateData
] string stringProperty, [LogProperties] MyTransitiveClass? complexParam);
71
[
PrivateData
] string stringProperty, [LogProperties] MyTransitiveClass? complexParam);
76
[
PrivateData
] string userId,
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticNullableTestClass.cs (3)
19
public partial void M2([
PrivateData
] string p0, [
PrivateData
] string p1, [
PrivateData
] string p2);
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (7)
23
public partial void M1([
PrivateData
] string p0);
26
public partial void M2([
PrivateData
] string p0, [
PrivateData
] string p1, [
PrivateData
] string p2);
29
public partial void M3(LogLevel level, [
PrivateData
] string p0);
41
[
PrivateData
] string p0,
53
[
PrivateData
] string p0,
test\Generators\Microsoft.Gen.Logging\TestClasses\NullableTestExtensions.cs (2)
18
internal static partial void M3(ILogger logger, [
PrivateData
] string? p0);
29
internal static partial void M6(ILogger? logger, [
PrivateData
] string? p0);
test\Generators\Microsoft.Gen.Logging\TestClasses\SensitiveRecordExtensions.cs (22)
21
[
PrivateData
] public const string ConstFieldBase = Sensitive;
22
[
PrivateData
] public static string StaticFieldBase = Sensitive;
23
[
PrivateData
] public static string StaticPropBase => Sensitive;
26
[
PrivateData
] private readonly string _privateFieldBase = Sensitive;
27
[
PrivateData
] private string _privateReadonlyFieldBase = Sensitive;
28
[
PrivateData
] internal string InternalFieldBase = Sensitive;
34
[
PrivateData
] public virtual string PropVirtual => Sensitive;
41
[
PrivateData
] public const string ConstField = Sensitive;
42
[
PrivateData
] public static string StaticField = Sensitive;
43
[
PrivateData
] public static string StaticProp => Sensitive;
46
[
PrivateData
] private string PrivateField = Sensitive;
47
[
PrivateData
] internal string InternalField = Sensitive;
50
[
PrivateData
] private string PrivatePropGetSet { get; set; } = Sensitive;
51
[
PrivateData
] internal string InternalPropGetSet { get; set; } = Sensitive;
52
[
PrivateData
] protected string ProtectedPropGetSet { get; set; } = Sensitive;
53
[
PrivateData
] private string PrivatePropGet => Sensitive;
54
[
PrivateData
] internal string InternalPropGet => Sensitive;
55
[
PrivateData
] protected string ProtectedPropGet => Sensitive;
62
[
PrivateData
] string AnnotatedArgFromPrimaryCtor,
63
[property:
PrivateData
] string AnnotatedPropFromPrimaryCtor)
65
[
PrivateData
]
88
[
PrivateData
] RecordWithSensitiveMembers data);
Utils.cs (2)
85
builder.SetRedactor<MinusRedactor>(new
PrivateDataAttribute
().Classification);
86
builder.SetRedactor<HashRedactor>(new DataClassificationSet(new
PrivateDataAttribute
().Classification, new PublicDataAttribute().Classification));
5 references to PrivateDataAttribute
Microsoft.Extensions.Compliance.Testing (1)
PrivateDataAttribute.cs (1)
14
/// Initializes a new instance of the <see cref="
PrivateDataAttribute
"/> class.
Microsoft.Gen.Logging.Unit.Tests (4)
AttributeParserTests.cs (1)
241
var simpleDataClassificationAssembly = Assembly.GetAssembly(typeof(
PrivateDataAttribute
));
CompilationHelper.cs (1)
36
refs.Add(MetadataReference.CreateFromFile(typeof(
PrivateDataAttribute
).Assembly.Location));
EmitterTests.cs (1)
46
Assembly.GetAssembly(typeof(
PrivateDataAttribute
))!,
ParserTests.cs (1)
727
Assembly.GetAssembly(typeof(
PrivateDataAttribute
))!,