8 instantiations of ClassToLog
Microsoft.Gen.Logging.Generated.Tests (8)
LogPropertiesTests.cs (1)
360
var classToLog = new
ClassToLog
{ MyIntProperty = 0 };
TagProviderTests.cs (7)
52
var classToLog = new
ClassToLog
{ MyIntProperty = 0 };
77
var classToLog = new
ClassToLog
{ MyIntProperty = ushort.MaxValue };
100
var classToLog = new
ClassToLog
{ MyIntProperty = ushort.MaxValue };
242
var classToLog = new
ClassToLog
{ MyIntProperty = 0 };
326
var classToLog = new
ClassToLog
{ MyIntProperty = 0 };
352
var classToLog1 = new
ClassToLog
{ MyIntProperty = 1 };
353
var classToLog2 = new
ClassToLog
{ MyIntProperty = -1 };
23 references to ClassToLog
Microsoft.Gen.Logging.Generated.Tests (23)
LogPropertiesTests.cs (1)
360
var
classToLog = new ClassToLog { MyIntProperty = 0 };
TagProviderTests.cs (7)
52
var
classToLog = new ClassToLog { MyIntProperty = 0 };
77
var
classToLog = new ClassToLog { MyIntProperty = ushort.MaxValue };
100
var
classToLog = new ClassToLog { MyIntProperty = ushort.MaxValue };
242
var
classToLog = new ClassToLog { MyIntProperty = 0 };
326
var
classToLog = new ClassToLog { MyIntProperty = 0 };
352
var
classToLog1 = new ClassToLog { MyIntProperty = 1 };
353
var
classToLog2 = new ClassToLog { MyIntProperty = -1 };
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (3)
32
internal partial void LogProperties(string p0, [LogProperties]
ClassToLog
p1);
37
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideTags))]
ClassToLog
p1);
48
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideTags))]
ClassToLog
p1);
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (12)
17
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideTags))]
ClassToLog
param);
33
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideTags))]
ClassToLog
param,
34
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideOtherTags))]
ClassToLog
param2);
39
[LogProperties]
ClassToLog
param1,
40
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideTags))]
ClassToLog
param2);
46
[TagProvider(typeof(CustomProvider), nameof(CustomProvider.ProvideTags))]
ClassToLog
param);
63
public static void ProvideTags(ITagCollector list,
ClassToLog
? param)
71
list.Add(nameof(
ClassToLog
.MyIntProperty), param.MyIntProperty);
88
public static void ProvideOtherTags(ITagCollector list,
ClassToLog
? param)
91
list.Add(nameof(
ClassToLog
.MyIntProperty) + "_test", param?.MyIntProperty);
96
list.Add(nameof(
ClassToLog
.MyIntProperty), param.MyIntProperty);
102
list.Add(nameof(
ClassToLog
.MyIntProperty), param.MyIntProperty);