15 references to Throw
Microsoft.AspNetCore.HeaderParsing (15)
HeaderParsingFeature.cs (1)
60
_ =
Throw
.IfNull(header);
HeaderParsingHttpRequestExtensions.cs (5)
23
var context =
Throw
.IfNull(request).HttpContext;
48
return
Throw
.IfNull(request)
50
.TryGetHeaderValue(
Throw
.IfNull(header), out value);
65
return
Throw
.IfNull(request)
67
.TryGetHeaderValue(
Throw
.IfNull(header), out value, out result);
HeaderParsingServiceCollectionExtensions.cs (3)
26
if (!
Throw
.IfNull(services).Any(x => x.ServiceType == typeof(HeaderParsingFeature.PoolHelper)))
49
_ =
Throw
.IfNull(services);
67
_ =
Throw
.IfNull(services);
HeaderRegistry.cs (1)
52
Throw
.InvalidOperationException($"Can't parse default value '{defValue}' for header '{id.HeaderName}': {error}.");
HeaderSetup.cs (4)
46
HeaderName =
Throw
.IfNullOrWhitespace(headerName);
47
ParserType =
Throw
.IfNull(parserType);
59
HeaderName =
Throw
.IfNullOrWhitespace(headerName);
60
ParserInstance =
Throw
.IfNull(instance);
HostHeaderValue.cs (1)
23
Host =
Throw
.IfNull(host);