1 implementation of Add
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.TagCollector.cs (1)
13void ITagCollector.Add(string tagName, object? tagValue)
19 references to Add
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.TagCollector.cs (1)
28/// <see cref="ITagCollector.Add(string, object?)"/> or <see cref="ITagCollector.Add(string, object?, DataClassificationSet)"/>
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\LoggerMessageStateTests.cs (2)
95collector.Add(PropName, Value); 113collector.Add(PropName, Value);
Microsoft.Gen.Logging.Generated.Tests (16)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesOmitParameterNameExtensions.cs (2)
41list.Add(nameof(MyProps.P0), param?.P0); 42list.Add("Custom_property_name", param?.P1);
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (11)
71list.Add(nameof(ClassToLog.MyIntProperty), param.MyIntProperty); 72list.Add("Custom_property_name", param.MyStringProperty); 79list.Add("P1", p.Value.ToInvariantString()); 85list.Add("NestedTagProvider", v); 90list.Add("Another_property_name", param?.MyStringProperty.ToUpperInvariant()); 91list.Add(nameof(ClassToLog.MyIntProperty) + "_test", param?.MyIntProperty); 96list.Add(nameof(ClassToLog.MyIntProperty), param.MyIntProperty); 97list.Add("Custom_property_name", param.MyStringProperty); 102list.Add(nameof(ClassToLog.MyIntProperty), param.MyIntProperty); 103list.Add("Custom_property_name", param.MyStringProperty); 111list.Add($"Foo{i}", s);
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderWithObjectExtensions.cs (3)
35list.Add(nameof(object.ToString), param + " ProvidePropertiesCall"); 40list.Add(nameof(object.ToString), param + " ProvideOtherPropertiesCall"); 41list.Add("Type", param?.GetType());