14 references to Registry
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyContextRegistrySet.cs (1)
45return new Registry(n, throwOnUnregisteredNames);
Microsoft.Extensions.Telemetry.Tests (13)
Latency\Internal\CheckpointTrackerTests.cs (1)
12private static readonly Registry _checkpointsName = new(new[] { "a", "b", "c", "d" }, false);
Latency\Internal\MeasureTrackerTests.cs (1)
12private static readonly Registry _measureNames = new(new[] { "a", "b", "c", "d" }, false);
Latency\Internal\RegistryTests.cs (10)
15Assert.Throws<ArgumentNullException>(() => new Registry(null!, true)); 16Assert.Throws<ArgumentNullException>(() => new Registry(null!, false)); 23Assert.Throws<ArgumentException>(() => new Registry(s!, true)); 24Assert.Throws<ArgumentException>(() => new Registry(s!, false)); 36var r = new Registry(Array.Empty<string>(), throwOnUnregistered); 44var r1 = new Registry(new[] { "a", "b", "c", "d" }, true); 46var r2 = new Registry(new[] { "a", "b", "c", "d" }, true); 57var r = new Registry(new[] { "a", "b", "c", "d" }, true); 74var r = new Registry(new[] { "a", "b", "c", "d" }, true); 84var r = new Registry(new[] { "a", "b", "c", "d" }, false);
Latency\Internal\TagCollectionTests.cs (1)
15private static readonly Registry _tagNames = new(new[] { "a", "b", "c", "d" }, false);