88 instantiations of PrivateDataAttribute
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (11)
Logging\ApiRoutingController.cs (1)
22[FromRoute][PrivateData] string userId,
Logging\AttributeRoutingController.cs (2)
20public IActionResult GetWithConstraint([PrivateData] string param) => Ok(param); 23public IActionResult GetWithNullableConstraint([PrivateData] int? param) => Ok(param);
Logging\ConventionalRoutingController.cs (1)
17public IActionResult GetEntity([PrivateData] int param) => Ok(param);
Logging\MixedRoutingController.cs (2)
17public IActionResult AttributeRoutingWithConstraint([PrivateData] int param) => Ok(param); 20public IActionResult AttributeRoutingWithNullableConstraint([PrivateData] int? param) => Ok(param);
Logging\TestController.cs (5)
19public async Task<IActionResult> GetTest1Async([PrivateData] string userId) 28public async Task<IActionResult> GetTest2Async([PrivateData] string userId, [PrivateData] string teamId) 37public async Task<IActionResult> GetTest3Async([PrivateData] string userId, [PrivateData] string teamId, string chatId)
Microsoft.Extensions.Compliance.Testing.Tests (1)
AttributeTests.cs (1)
16a = new PrivateDataAttribute();
Microsoft.Gen.Logging.Generated.Tests (76)
test\Generators\Microsoft.Gen.Logging\TestClasses\AtSymbolsTestExtensions.cs (1)
22internal static partial void M1(ILogger logger, [PrivateData] string @myevent1);
test\Generators\Microsoft.Gen.Logging\TestClasses\AttributeTestExtensions.cs (23)
17public static partial void M1(ILogger logger, [PrivateData] string p0, string p1); 20public 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); 64public static partial void M8(ILogger logger, [PrivateData] int p0); 67public static partial void M9(ILogger logger, [PrivateData] CustomToStringTestClass p0); 70public static partial void M10(ILogger logger, [PrivateData] NonFormattable p0);
test\Generators\Microsoft.Gen.Logging\TestClasses\DataClassificationTestExtensions.cs (3)
16[PrivateData] 26public static partial void M1(ILogger logger, [PublicData, PrivateData] string p1, [PublicData] string p2); 29public 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)
19public partial void M2([PrivateData] string p0, [PrivateData] string p1, [PrivateData] string p2);
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (7)
23public partial void M1([PrivateData] string p0); 26public partial void M2([PrivateData] string p0, [PrivateData] string p1, [PrivateData] string p2); 29public 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)
18internal static partial void M3(ILogger logger, [PrivateData] string? p0); 29internal 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)
85builder.SetRedactor<MinusRedactor>(new PrivateDataAttribute().Classification); 86builder.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)
241var simpleDataClassificationAssembly = Assembly.GetAssembly(typeof(PrivateDataAttribute));
CompilationHelper.cs (1)
36refs.Add(MetadataReference.CreateFromFile(typeof(PrivateDataAttribute).Assembly.Location));
EmitterTests.cs (1)
46Assembly.GetAssembly(typeof(PrivateDataAttribute))!,
ParserTests.cs (1)
727Assembly.GetAssembly(typeof(PrivateDataAttribute))!,