81 references to Throw
Microsoft.Extensions.Http.Resilience (81)
Hedging\HttpClientHedgingResiliencePredicates.cs (1)
49_ = Throw.IfNull(exception);
Hedging\Internals\RequestMessageSnapshotStrategy.cs (1)
27Throw.InvalidOperationException("The HTTP request message was not found in the resilience context.");
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (4)
44_ = Throw.IfNull(builder); 45_ = Throw.IfNull(configure); 73_ = Throw.IfNull(builder); 88Throw.InvalidOperationException("Request message snapshot is not attached to the resilience context.");
Hedging\StandardHedgingHandlerBuilderExtensions.cs (10)
30_ = Throw.IfNull(builder); 31_ = Throw.IfNull(section); 35Throw.ArgumentException(nameof(section), "Configuration section cannot be empty."); 51_ = Throw.IfNull(builder); 52_ = Throw.IfNull(configure); 65_ = Throw.IfNull(builder); 66_ = Throw.IfNull(configure); 80_ = Throw.IfNull(builder); 98_ = Throw.IfNull(builder); 99_ = Throw.IfNull(selectorFactory);
Internal\RequestMessageSnapshot.cs (1)
78Throw.InvalidOperationException($"{nameof(StreamContent)} content cannot by cloned.");
Polly\HttpClientResiliencePredicates.cs (2)
48_ = Throw.IfNull(exception); 65_ = Throw.IfNull(response);
Resilience\HttpResilienceContextExtensions.cs (2)
31_ = Throw.IfNull(context); 43_ = Throw.IfNull(context);
Resilience\HttpResilienceHttpRequestMessageExtensions.cs (2)
27_ = Throw.IfNull(requestMessage); 51_ = Throw.IfNull(requestMessage);
Resilience\HttpResiliencePipelineBuilderExtensions.cs (3)
23_ = Throw.IfNull(builder); 39_ = Throw.IfNull(builder); 40_ = Throw.IfNull(selectorFactory);
Resilience\HttpStandardResiliencePipelineBuilderExtensions.cs (10)
27_ = Throw.IfNull(builder); 28_ = Throw.IfNull(section); 32Throw.ArgumentException(nameof(section), "Configuration section cannot be empty."); 53_ = Throw.IfNull(builder); 54_ = Throw.IfNull(configure); 69_ = Throw.IfNull(builder); 70_ = Throw.IfNull(configure); 84_ = Throw.IfNull(builder); 100_ = Throw.IfNull(builder); 101_ = Throw.IfNull(selectorFactory);
Resilience\ResilienceHandler.cs (4)
32_pipelineProvider = Throw.IfNull(pipelineProvider); 42_ = Throw.IfNull(pipeline); 55_ = Throw.IfNull(request); 114_ = Throw.IfNull(request);
Resilience\ResilienceHandlerContext.cs (1)
70public void OnPipelineDisposed(Action callback) => _context.OnPipelineDisposed(Throw.IfNull(callback));
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (6)
38_ = Throw.IfNull(builder); 39_ = Throw.IfNullOrEmpty(pipelineName); 40_ = Throw.IfNull(configure); 61_ = Throw.IfNull(builder); 62_ = Throw.IfNullOrEmpty(pipelineName); 63_ = Throw.IfNull(configure);
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (5)
33_ = Throw.IfNull(builder); 34_ = Throw.IfNull(section); 51_ = Throw.IfNull(builder); 52_ = Throw.IfNull(configure); 68_ = Throw.IfNull(builder);
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategy.cs (1)
36Throw.InvalidOperationException("The routing strategy is not initialized.");
Routing\Internal\RoutingResilienceStrategy.cs (2)
34Throw.InvalidOperationException("The HTTP request message was not found in the resilience context."); 47Throw.InvalidOperationException("The routing strategy did not provide any route URL on the first attempt.");
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategy.cs (1)
52Throw.InvalidOperationException("The routing strategy is not initialized.");
Routing\RoutingStrategyBuilderExtensions.cs (12)
34_ = Throw.IfNull(builder); 35_ = Throw.IfNull(section); 49_ = Throw.IfNull(builder); 50_ = Throw.IfNull(configure); 63_ = Throw.IfNull(builder); 64_ = Throw.IfNull(configure); 79_ = Throw.IfNull(builder); 80_ = Throw.IfNull(section); 95_ = Throw.IfNull(builder); 96_ = Throw.IfNull(configure); 109_ = Throw.IfNull(builder); 110_ = Throw.IfNull(configure);
src\Shared\Data.Validation\TimeSpanAttribute.cs (3)
88_ = Throw.IfNullOrWhitespace(min); 101_ = Throw.IfNullOrWhitespace(min); 102_ = Throw.IfNullOrWhitespace(max);
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);