55 references to PathString
Aspire.Hosting.Yarp (4)
ConfigurationBuilder\Transforms\PathTransformExtensions.cs (4)
45return route.WithTransformPathSet(new PathString(path)); 77return route.WithTransformPathPrefix(new PathString(prefix)); 109return route.WithTransformPathRemovePrefix(new PathString(prefix)); 141return route.WithTransformPathRouteValues(new PathString(pattern));
Microsoft.AspNetCore.Authentication.Cookies (3)
CookieAuthenticationDefaults.cs (3)
27public static readonly PathString LoginPath = new PathString("/Account/Login"); 33public static readonly PathString LogoutPath = new PathString("/Account/Logout"); 39public static readonly PathString AccessDeniedPath = new PathString("/Account/AccessDenied");
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookOptions.cs (1)
20CallbackPath = new PathString("/signin-facebook");
Microsoft.AspNetCore.Authentication.Google (1)
GoogleOptions.cs (1)
20CallbackPath = new PathString("/signin-google");
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountOptions.cs (1)
20CallbackPath = new PathString("/signin-microsoft");
Microsoft.AspNetCore.Authentication.OpenIdConnect (7)
OpenIdConnectConfigureOptions.cs (4)
43options.AccessDeniedPath = new PathString(configSection[nameof(options.AccessDeniedPath)] ?? options.AccessDeniedPath.Value); 47options.CallbackPath = new PathString(configSection[nameof(options.CallbackPath)] ?? options.CallbackPath.Value); 68options.RemoteSignOutPath = new PathString(configSection[nameof(options.RemoteSignOutPath)] ?? options.RemoteSignOutPath.Value); 76options.SignedOutCallbackPath = new PathString(configSection[nameof(options.SignedOutCallbackPath)] ?? options.SignedOutCallbackPath.Value);
OpenIdConnectOptions.cs (3)
44CallbackPath = new PathString("/signin-oidc"); 45SignedOutCallbackPath = new PathString("/signout-callback-oidc"); 46RemoteSignOutPath = new PathString("/signout-oidc");
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterOptions.cs (1)
24CallbackPath = new PathString("/signin-twitter");
Microsoft.AspNetCore.Diagnostics (4)
ExceptionHandler\ExceptionHandlerExtensions.cs (2)
46ExceptionHandlingPath = new PathString(errorHandlingPath) 64ExceptionHandlingPath = new PathString(errorHandlingPath),
StatusCodePage\StatusCodePagesExtensions.cs (1)
221var newPath = new PathString(
WelcomePage\WelcomePageExtensions.cs (1)
57Path = new PathString(path)
Microsoft.AspNetCore.Http (2)
Internal\DefaultHttpRequest.cs (2)
69get { return new PathString(HttpRequestFeature.PathBase); } 75get { return new PathString(HttpRequestFeature.Path); }
Microsoft.AspNetCore.Http.Abstractions (11)
Extensions\UsePathBaseExtensions.cs (1)
26pathBase = new PathString(pathBase.Value?.TrimEnd('/'));
PathString.cs (10)
30public static readonly PathString Empty = new(string.Empty); 185return new PathString(uriComponent); 191return new PathString(pathBuffer.ToString()); 207return new PathString(pathBuffer.ToString()); 290remaining = new PathString(value1[value2.Length..]); 340matched = new PathString(value1.Substring(0, value2.Length)); 341remaining = new PathString(value1[value2.Length..]); 363return new PathString(combined); 366return new PathString(Value + other.Value); 509=> string.IsNullOrEmpty(s) ? new PathString(s) : FromUriComponent(s);
Microsoft.AspNetCore.Http.Results (1)
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
22var segment = new PathString(contentPath.Substring(1));
Microsoft.AspNetCore.Identity (2)
IdentityCookiesBuilderExtensions.cs (1)
51o.LoginPath = new PathString("/Account/Login");
IdentityServiceCollectionExtensions.cs (1)
61o.LoginPath = new PathString("/Account/Login");
Microsoft.AspNetCore.Mvc.Core (2)
Routing\UrlHelperBase.cs (1)
304var segment = new PathString(contentPath.Substring(1));
src\aspnetcore\src\Shared\ResultsHelpers\SharedUrlHelper.cs (1)
22var segment = new PathString(contentPath.Substring(1));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
GlobbingUrlBuilder.cs (1)
159var relativePath = new PathString("/" + matchedPath.Path);
Microsoft.AspNetCore.Routing (1)
UriBuildingContext.cs (1)
258pathString = new PathString(_path.ToString());
Microsoft.AspNetCore.Server.HttpSys (2)
UrlPrefixCollection.cs (2)
84var originalPathString = new PathString(originalPath); 96&& originalPathString.StartsWithSegments(new PathString(prefix.PathWithoutTrailingSlash), StringComparison.OrdinalIgnoreCase, out var remainder)
Microsoft.AspNetCore.Server.IISIntegration (2)
IISMiddleware.cs (1)
28private static readonly PathString ANCMRequestPath = new PathString("/iisintegration");
WebHostBuilderIISExtensions.cs (1)
91services.AddSingleton<IStartupFilter>(new IISSetupFilter(pairingToken, new PathString(path), isWebSocketsSupported));
Microsoft.AspNetCore.StaticFiles (6)
DefaultFilesExtensions.cs (1)
48RequestPath = new PathString(requestPath)
DefaultFilesMiddleware.cs (1)
75context.Request.Path = new PathString(Helpers.GetPathValueWithSlash(context.Request.Path) + defaultFile);
DirectoryBrowserExtensions.cs (1)
48RequestPath = new PathString(requestPath)
FileServerExtensions.cs (1)
68RequestPath = new PathString(requestPath)
Helpers.cs (1)
55path += new PathString("/");
StaticFileExtensions.cs (1)
48RequestPath = new PathString(requestPath)
Microsoft.AspNetCore.TestHost (3)
ClientHandler.cs (1)
40pathBase = new PathString(pathBase.Value[..^1]); // All but the last character
TestServer.cs (1)
230pathBase = new PathString(pathBase.Value[..^1]); // All but the last character.
WebSocketClient.cs (1)
29pathBase = new PathString(pathBase.Value[..^1]); // All but the last character.