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);
8 references to TryGetValue
Aspire.Dashboard (3)
Model\ValidateTokenMiddleware.cs (2)
37else if (context.Request.Query.TryGetValue("t", out var value) && _options.CurrentValue.Frontend.AuthMode == FrontendAuthMode.BrowserToken) 73if (context.Request.Query.TryGetValue("returnUrl", out var returnUrl)
Terminal\TerminalWebSocketProxy.cs (1)
159if (!context.Request.Query.TryGetValue("viewId", out var viewId))
Aspire.Hosting.Tests (1)
Dcp\KubernetesServiceTests.cs (1)
2513var isWatchRequest = context.Request.Query.TryGetValue("watch", out var watchValues)
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)
491if (context.Request.Query.TryGetValue("NegotiateVersion", out var queryStringVersion)) 518if (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))