14 references to HasValue
Microsoft.AspNetCore.Http (1)
src\Shared\Debugger\HttpContextDebugFormatter.cs (1)
93
!request.Host.
HasValue
&&
Microsoft.AspNetCore.Http.Abstractions (5)
HostString.cs (5)
137
if (!
HasValue
)
283
if (!
HasValue
&& !other.
HasValue
)
299
return !
HasValue
;
310
return (
HasValue
? StringComparer.OrdinalIgnoreCase.GetHashCode(_value) : 0);
Microsoft.AspNetCore.Rewrite (3)
RedirectRule.cs (1)
94
encodedPath = host.
HasValue
RedirectToNonWwwRule.cs (1)
46
if (!request.Host.
HasValue
|| !request.Host.Value.StartsWith(WwwDot, StringComparison.OrdinalIgnoreCase))
RedirectToWwwRule.cs (1)
46
if (req.Host.
HasValue
&& req.Host.Value.StartsWith(WwwDot, StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Routing (3)
DefaultLinkGenerator.cs (1)
160
if (!host.
HasValue
)
LinkGeneratorEndpointNameAddressExtensions.cs (2)
310
if (!host.
HasValue
)
359
if (!host.
HasValue
)
Microsoft.AspNetCore.TestHost (2)
ClientHandler.cs (1)
170
if (!req.Host.
HasValue
)
WebSocketClient.cs (1)
65
if (!request.Host.
HasValue
)