Base:
26 references to ToString
IIS.Tests (1)
TestServerTest.cs (1)
26path = ctx.Request.Path.ToString();
InMemory.FunctionalTests (2)
Http2\Http2TestBase.cs (1)
372context.Response.Headers["path"] = context.Request.Path.ToString();
Http3\Http3TestBase.cs (1)
103context.Response.Headers["path"] = context.Request.Path.ToString();
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
1756switch (context.Request.Path.ToString())
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
92var pathBase = httpContext.Request.PathBase.ToString();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
WebAssemblyNetDebugProxyAppBuilderExtensions.cs (1)
40var requestPath = context.Request.Path.ToString();
Microsoft.AspNetCore.Diagnostics (2)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
91Path = httpContext.Request.Path.ToString(), 266path: httpContext.Request.Path.ToString(),
Microsoft.AspNetCore.Hosting (1)
Internal\HostingApplicationDiagnostics.cs (1)
521: httpContext.Request.Path).ToString();
Microsoft.AspNetCore.Http.Abstractions (3)
PathString.cs (3)
457return string.Concat(left, right.ToString()); 469return string.Concat(left.ToString(), right); 506=> path.ToString();
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
PathStringTests.cs (1)
294Assert.Equal("/foo", result.ToString());
Microsoft.AspNetCore.Http.Extensions (1)
UriHelper.cs (1)
36string combinePath = (pathBase.HasValue || path.HasValue) ? (pathBase + path).ToString() : "/";
Microsoft.AspNetCore.HttpOverrides (1)
ForwardedHeadersMiddleware.cs (1)
368requestHeaders[_options.OriginalPrefixHeaderName] = request.PathBase.ToString();
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
160var matchedUrl = RequestPathBase.Add(relativePath).ToString();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
CookieTempDataProvider.cs (1)
131var pathBase = httpContext.Request.PathBase.ToString();
Microsoft.AspNetCore.Rewrite (5)
IISUrlRewrite\IISUrlRewriteRule.cs (2)
46initMatchResults = InitialMatch.Evaluate(path.ToString(), context); 50initMatchResults = InitialMatch.Evaluate(path.ToString().Substring(1), context);
RedirectRule.cs (1)
40initMatchResults = InitialMatch.Match(path.ToString().Substring(1));
RewriteRule.cs (2)
33initMatchResults = InitialMatch.Match(path.ToString()); 37initMatchResults = InitialMatch.Match(path.ToString().Substring(1));
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
156var url = context.Request.Path.ToString();
StatusCodePagesSample (3)
Startup.cs (3)
67builder.AppendLine("An error occurred, Status Code: " + HtmlEncoder.Default.Encode(context.Request.Path.ToString().Substring(1)) + "<br>"); 85HtmlEncoder.Default.Encode(context.Request.PathBase.ToString()) + "/missingpage/\">" + 86HtmlEncoder.Default.Encode(context.Request.PathBase.ToString()) + "/missingpage/</a><br>");