60 references to Throw
Microsoft.Extensions.Telemetry (60)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (5)
24_ = Throw.IfNull(services); 39_ = Throw.IfNull(services); 40_ = Throw.IfNull(configure); 56_ = Throw.IfNull(services); 57_ = Throw.IfNull(section);
Enrichment\ApplicationLogEnricher.cs (2)
20var enricherOptions = Throw.IfMemberNull(options, options.Value); 21var applicationMetadata = Throw.IfMemberNull(metadata, metadata.Value);
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (5)
24_ = Throw.IfNull(services); 39_ = Throw.IfNull(services); 40_ = Throw.IfNull(configure); 57_ = Throw.IfNull(services); 58_ = Throw.IfNull(section);
Enrichment\ProcessLogEnricher.cs (1)
22var enricherOptions = Throw.IfMemberNull(options, options.Value);
Enrichment\StaticProcessLogEnricher.cs (1)
20var enricherOptions = Throw.IfMemberNull(options, options.Value);
Http\ParsedRouteSegments.cs (1)
22_ = Throw.IfNull(segments);
Latency\Internal\LatencyContextRegistrySet.cs (2)
50_ = Throw.IfNull(names); 56Throw.ArgumentException(nameof(names), "Found null or whitespace name in supplied set");
Latency\Internal\LatencyContextTokenIssuer.cs (3)
26_ = Throw.IfNull(name); 32_ = Throw.IfNull(name); 38_ = Throw.IfNull(name);
Latency\Internal\Registry.cs (3)
38Throw.ArgumentException(nameof(keys), "Supplied set contains null values"); 66_ = Throw.IfNull(key); 74Throw.ArgumentException(nameof(key), $"Name {key} has not been registered.");
Latency\LatencyConsoleExtensions.cs (5)
26_ = Throw.IfNull(services); 43_ = Throw.IfNull(services); 44_ = Throw.IfNull(configure); 60_ = Throw.IfNull(services); 61_ = Throw.IfNull(section);
Latency\LatencyContextExtensions.cs (5)
25_ = Throw.IfNull(services); 42_ = Throw.IfNull(services); 43_ = Throw.IfNull(configure); 58_ = Throw.IfNull(services); 59_ = Throw.IfNull(section);
Logging\ExtendedLoggerFactory.cs (3)
55Throw.ArgumentException($"{_factoryOptions.ActivityTrackingOptions} is invalid ActivityTrackingOptions value.", nameof(factoryOptions)); 127_ = Throw.IfNull(categoryName); 151_ = Throw.IfNull(provider);
Logging\Import\LoggerFactoryScopeProvider.cs (1)
195Throw.ArgumentOutOfRangeException(nameof(index));
Logging\LoggingEnrichmentExtensions.cs (4)
34_ = Throw.IfNull(builder); 35_ = Throw.IfNull(configure); 52_ = Throw.IfNull(builder); 53_ = Throw.IfNull(section);
Logging\LoggingRedactionExtensions.cs (4)
34_ = Throw.IfNull(builder); 35_ = Throw.IfNull(configure); 51_ = Throw.IfNull(builder); 52_ = Throw.IfNull(section);
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
88_ = Throw.IfNullOrWhitespace(min); 101_ = Throw.IfNullOrWhitespace(min); 102_ = Throw.IfNullOrWhitespace(max);
src\Shared\Memoization\MemoizedFunction.cs (2)
68_function = Throw.IfNull(function); 141_function = Throw.IfNull(function);
src\Shared\Pools\PoolFactory.cs (10)
42_ = Throw.IfLessThan(maxCapacity, 1); 57_ = Throw.IfNull(policy); 58_ = Throw.IfLessThan(maxCapacity, 1); 75_ = Throw.IfLessThan(maxCapacity, 1); 88_ = Throw.IfLessThan(maxCapacity, 1); 89_ = Throw.IfLessThan(maxStringBuilderCapacity, 1); 116_ = Throw.IfLessThan(maxCapacity, 1); 136_ = Throw.IfLessThan(maxCapacity, 1); 155_ = Throw.IfLessThan(maxCapacity, 1); 177_ = Throw.IfLessThan(maxCapacity, 1);