2 implementations of TryGetValue
Microsoft.AspNetCore.Http (2)
QueryCollection.cs (1)
136public bool TryGetValue(string key, out StringValues value)
QueryCollectionInternal.cs (1)
61public bool TryGetValue(string key, out StringValues value) => Store.TryGetValue(key, out value);
9 references to TryGetValue
Aspire.Dashboard (2)
Model\ValidateTokenMiddleware.cs (2)
37else if (context.Request.Query.TryGetValue("t", out var value) && _options.CurrentValue.Frontend.AuthMode == FrontendAuthMode.BrowserToken) 71if (context.Request.Query.TryGetValue("returnUrl", out var returnUrl))
BasicWebSite (1)
Filters\TestExceptionFilter.cs (1)
13if (context.HttpContext.Request.Query.TryGetValue("handleException", out var handleException))
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\OpaqueRedirection.cs (1)
68if (!httpContext.Request.Query.TryGetValue("url", out var protectedUrl))
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
341if (context.Request.Query.TryGetValue("NegotiateVersion", out var queryStringVersion)) 368if (options.AllowStatefulReconnects == true && context.Request.Query.TryGetValue("UseStatefulReconnect", out var useStatefulReconnectValue))
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageHandlerMethodSelector.cs (1)
155if (context.HttpContext.Request.Query.TryGetValue(Handler, out var queryValues))
RazorPagesWebSite (2)
Pages\ShortCircuitPageAtAuthFilter.cshtml.cs (1)
21return httpContext.Request.Query.TryGetValue("target", out var expectedTargetName)
Pages\ShortCircuitPageAtPageFilter.cshtml.cs (1)
21return httpContext.Request.Query.TryGetValue("target", out var expectedTargetName)