61 references to Throw
Microsoft.Extensions.Telemetry (61)
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)
20
var enricherOptions =
Throw
.IfMemberNull(options, options.Value);
21
var 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)
22
var enricherOptions =
Throw
.IfMemberNull(options, options.Value);
Enrichment\StaticProcessLogEnricher.cs (1)
20
var enricherOptions =
Throw
.IfMemberNull(options, options.Value);
Http\HttpRouteParser.cs (1)
218
Throw
.ArgumentException(nameof(httpRoute), "A catch-all parameter must be the last segment in the route.");
Http\ParsedRouteSegments.cs (1)
22
_ =
Throw
.IfNull(segments);
Latency\Internal\LatencyContextRegistrySet.cs (2)
50
_ =
Throw
.IfNull(names);
56
Throw
.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)
38
Throw
.ArgumentException(nameof(keys), "Supplied set contains null values");
66
_ =
Throw
.IfNull(key);
74
Throw
.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)
55
Throw
.ArgumentException($"{_factoryOptions.ActivityTrackingOptions} is invalid ActivityTrackingOptions value.", nameof(factoryOptions));
127
_ =
Throw
.IfNull(categoryName);
151
_ =
Throw
.IfNull(provider);
Logging\Import\LoggerFactoryScopeProvider.cs (1)
195
Throw
.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);