170 references to Throw
Microsoft.AspNetCore.Diagnostics.Middleware (42)
Buffering\IncomingRequestLogBuffer.cs (1)
62Throw.InvalidOperationException(
Buffering\PerIncomingRequestLoggingBuilderExtensions.cs (5)
35_ = Throw.IfNull(builder); 36_ = Throw.IfNull(configuration); 64_ = Throw.IfNull(builder); 65_ = Throw.IfNull(configure); 93_ = Throw.IfNull(builder);
Latency\AddServerTimingHeaderMiddleware.cs (1)
23_next = Throw.IfNull(next);
Latency\CapturePipelineEntryMiddleware.cs (1)
23_next = Throw.IfNull(next);
Latency\CapturePipelineExitMiddleware.cs (1)
26_next = Throw.IfNull(next);
Latency\CaptureResponseTimeMiddleware.cs (1)
26_next = Throw.IfNull(next);
Latency\HttpLatencyTelemetryServiceCollectionExtensions.cs (1)
31_ = Throw.IfNull(services);
Latency\RequestLatencyTelemetryApplicationBuilderExtensions.cs (2)
22=> Throw.IfNull(builder) 34=> Throw.IfNull(builder)
Latency\RequestLatencyTelemetryMiddleware.cs (1)
44_next = Throw.IfNull(next);
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (6)
26=> Throw.IfNull(services) 38_ = Throw.IfNull(services); 55=> Throw.IfNull(services) 56.Configure(Throw.IfNull(configure)) 67=> Throw.IfNull(services) 68.Configure<RequestLatencyTelemetryOptions>(Throw.IfNull(section))
Logging\HttpLoggingServiceCollectionExtensions.cs (4)
38_ = Throw.IfNull(services); 64_ = Throw.IfNull(services); 65_ = Throw.IfNull(section); 83_ = Throw.IfNull(services);
Logging\HttpUtilityExtensions.cs (1)
38_ = Throw.IfNull(request);
Logging\Internal\LoggingRedactionOptionsConfigureOptions.cs (1)
31_section = Throw.IfNull(section);
Logging\RequestHeadersEnricherServiceCollectionExtensions.cs (3)
23_ = Throw.IfNull(services); 39_ = Throw.IfNull(services); 40_ = Throw.IfNull(configure);
Logging\RequestHeadersLogEnricher.cs (2)
35var opt = Throw.IfMemberNull(options, options.Value); 43_redactorProvider = Throw.IfNull(redactorProvider);
src\Shared\BufferWriterPool\BufferWriter.cs (4)
74_ = Throw.IfLessThan(value, 0); 121_ = Throw.IfOutOfRange(count, 0, _buffer.Length - WrittenCount); 182Throw.InvalidOperationException("Exceeded array capacity"); 189_ = Throw.IfLessThan(sizeHint, 0);
src\Shared\BufferWriterPool\BufferWriterPool.cs (2)
28_ = Throw.IfLessThan(maxCapacity, 1); 29_ = Throw.IfLessThan(maxBufferWriterCapacity, 1);
src\Shared\BufferWriterPool\BufferWriterPooledObjectPolicy.cs (2)
37MaximumRetainedCapacity = Throw.IfLessThan(maximumRetainedCapacity, 1); 63_ = Throw.IfNull(obj);
src\Shared\Debugger\DebuggerExtensions.cs (3)
27_ = Throw.IfNull(services); 41_ = Throw.IfNull(services); 55_ = Throw.IfNull(services);
Microsoft.Extensions.Http.Diagnostics (43)
Http\HttpDependencyMetadataResolver.cs (1)
46_ = Throw.IfNull(dependencyMetadata);
Http\HttpDiagnosticsHttpRequestMessageExtensions.cs (3)
24_ = Throw.IfNull(request); 25_ = Throw.IfNull(metadata); 41_ = Throw.IfNull(request);
Http\HttpDiagnosticsHttpWebRequestExtensions.cs (3)
21_ = Throw.IfNull(request); 22_ = Throw.IfNull(metadata); 36_ = Throw.IfNull(request);
Http\HttpDiagnosticsServiceCollectionExtensions.cs (2)
24_ = Throw.IfNull(services); 40_ = Throw.IfNull(services);
Latency\HttpClientLatencyTelemetryExtensions.cs (3)
29_ = Throw.IfNull(services); 64_ = Throw.IfNull(section); 83_ = Throw.IfNull(configure);
Logging\HttpClientLoggingHttpClientBuilderExtensions.cs (10)
36_ = Throw.IfNull(builder); 58_ = Throw.IfNull(builder); 76_ = Throw.IfNull(builder); 77_ = Throw.IfNull(section); 100_ = Throw.IfNull(builder); 101_ = Throw.IfNull(section); 119_ = Throw.IfNull(builder); 120_ = Throw.IfNull(configure); 143_ = Throw.IfNull(builder); 144_ = Throw.IfNull(configure);
Logging\HttpClientLoggingServiceCollectionExtensions.cs (6)
33_ = Throw.IfNull(services); 63_ = Throw.IfNull(services); 64_ = Throw.IfNull(section); 85_ = Throw.IfNull(services); 86_ = Throw.IfNull(configure); 103=> Throw.IfNull(services).AddActivatedSingleton<IHttpClientLogEnricher, T>();
Logging\Internal\HttpRequestReader.cs (1)
73_outgoingPathLogMode = Throw.IfOutOfRange(options.RequestPathLoggingMode);
Logging\Internal\HttpResponseBodyReader.cs (1)
35_ = Throw.IfNull(responseOptions);
Logging\Internal\LoggingOptionsConfigureOptions.cs (1)
32_section = Throw.IfNull(section);
Logging\Internal\TelemetryCommonHttpExtensions.cs (1)
15_ = Throw.IfNull(services);
src\Shared\BufferWriterPool\BufferWriter.cs (4)
74_ = Throw.IfLessThan(value, 0); 121_ = Throw.IfOutOfRange(count, 0, _buffer.Length - WrittenCount); 182Throw.InvalidOperationException("Exceeded array capacity"); 189_ = Throw.IfLessThan(sizeHint, 0);
src\Shared\BufferWriterPool\BufferWriterPool.cs (2)
28_ = Throw.IfLessThan(maxCapacity, 1); 29_ = Throw.IfLessThan(maxBufferWriterCapacity, 1);
src\Shared\BufferWriterPool\BufferWriterPooledObjectPolicy.cs (2)
37MaximumRetainedCapacity = Throw.IfLessThan(maximumRetainedCapacity, 1); 63_ = Throw.IfNull(obj);
src\Shared\Debugger\DebuggerExtensions.cs (3)
27_ = Throw.IfNull(services); 41_ = Throw.IfNull(services); 55_ = Throw.IfNull(services);
Microsoft.Extensions.Telemetry (85)
Buffering\GlobalBuffer.cs (4)
49_options = Throw.IfNull(options); 52_category = Throw.IfNullOrEmpty(category); 53_ruleSelector = Throw.IfNull(ruleSelector); 83Throw.InvalidOperationException(
Buffering\GlobalBufferLoggingBuilderExtensions.cs (5)
32_ = Throw.IfNull(builder); 33_ = Throw.IfNull(configuration); 58_ = Throw.IfNull(builder); 59_ = Throw.IfNull(configure); 81_ = Throw.IfNull(builder);
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (5)
66_ = Throw.IfNull(services); 81_ = Throw.IfNull(services); 82_ = Throw.IfNull(configure); 98_ = Throw.IfNull(services); 99_ = Throw.IfNull(section);
Enrichment\ApplicationLogEnricher.cs (2)
19var enricherOptions = Throw.IfMemberNull(options, options.Value); 20var 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\HttpRouteParser.cs (1)
217Throw.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); 56Throw.ArgumentException(nameof(names), "Found null or whitespace name in supplied set");
Latency\Internal\LatencyContextTokenIssuer.cs (3)
25_ = Throw.IfNull(name); 31_ = Throw.IfNull(name); 37_ = 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)
71Throw.ArgumentException($"{_factoryOptions.ActivityTrackingOptions} is invalid ActivityTrackingOptions value.", nameof(factoryOptions)); 141_ = Throw.IfNull(categoryName); 165_ = Throw.IfNull(provider);
Logging\Import\LoggerFactoryScopeProvider.cs (1)
191Throw.ArgumentOutOfRangeException(nameof(index));
Logging\LoggingEnrichmentExtensions.cs (5)
34_ = Throw.IfNull(builder); 35_ = Throw.IfNull(configure); 53_ = Throw.IfNull(builder); 54_ = Throw.IfNull(section); 70_ = Throw.IfNull(services);
Logging\LoggingRedactionExtensions.cs (4)
33_ = Throw.IfNull(builder); 34_ = Throw.IfNull(configure); 51_ = Throw.IfNull(builder); 52_ = Throw.IfNull(section);
Sampling\RandomProbabilisticSampler.cs (2)
40_ruleSelector = Throw.IfNull(ruleSelector); 41LastKnownGoodSamplerRules = Throw.IfNullOrMemberNull(options, options.CurrentValue).Rules.ToArray();
Sampling\SamplingLoggerBuilderExtensions.cs (10)
30_ = Throw.IfNull(builder); 48_ = Throw.IfNull(builder); 49_ = Throw.IfNull(configuration); 79_ = Throw.IfNull(builder); 80_ = Throw.IfNull(configure); 106_ = Throw.IfNull(builder); 107_ = Throw.IfOutOfRange(probability, 0, 1, nameof(probability)); 128_ = Throw.IfNull(builder); 145_ = Throw.IfNull(builder); 146_ = Throw.IfNull(sampler);
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 (12)
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); 134_ = Throw.IfLessThan(maxCapacity, 1); 135_ = Throw.IfLessThan(listCapacity, 0); 155_ = Throw.IfLessThan(maxCapacity, 1); 174_ = Throw.IfLessThan(maxCapacity, 1); 196_ = Throw.IfLessThan(maxCapacity, 1);