39 references to StartsWithSegments
BasicWebSite (1)
Controllers\RazorComponentsController.cs (1)
55Request.Path = Request.Path.StartsWithSegments("/components/routable") ?
blazor-devserver (3)
Server\Startup.cs (3)
38if (ctx.Request.Path.StartsWithSegments("/_framework") && !ctx.Request.Path.StartsWithSegments("/_framework/blazor.server.js") && !ctx.Request.Path.StartsWithSegments("/_framework/blazor.web.js"))
HttpLogging.Sample (1)
SampleHttpLoggingInterceptor.cs (1)
13if (!logContext.HttpContext.Request.Path.StartsWithSegments("/api"))
InProcessWebSite (17)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (17)
783if (ctx.Request.Path.StartsWithSegments("/NullBuffer")) 794else if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetSmall")) 805else if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetLarge")) 816else if (ctx.Request.Path.StartsWithSegments("/InvalidCountSmall")) 827else if (ctx.Request.Path.StartsWithSegments("/InvalidCountLarge")) 838else if (ctx.Request.Path.StartsWithSegments("/InvalidCountWithOffset")) 857if (ctx.Request.Path.StartsWithSegments("/NullBuffer")) 861else if (ctx.Request.Path.StartsWithSegments("/NullBufferPost")) 865else if (ctx.Request.Path.StartsWithSegments("/InvalidCountZeroRead")) 869else if (ctx.Request.Path.StartsWithSegments("/InvalidCountZeroReadPost")) 881if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetSmall")) 892else if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetLarge")) 903else if (ctx.Request.Path.StartsWithSegments("/InvalidCountSmall")) 914else if (ctx.Request.Path.StartsWithSegments("/InvalidCountLarge")) 925else if (ctx.Request.Path.StartsWithSegments("/InvalidCountWithOffset")) 942if (ctx.Request.Path.StartsWithSegments("/NullBuffer")) 946else if (ctx.Request.Path.StartsWithSegments("/NullBufferPost"))
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (3)
42builder.MapWhen(ctx => ctx.Request.Path.StartsWithSegments(pathPrefix, out var rest) && rest.StartsWithSegments("/_framework") && 43!rest.StartsWithSegments("/_framework/blazor.server.js") && !rest.StartsWithSegments("/_framework/blazor.web.js"),
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
PathStringTests.cs (2)
124var result = source.StartsWithSegments(test); 140var result = source.StartsWithSegments(test);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Proxying\ConditionalProxyMiddleware.cs (1)
45if (context.Request.Path.StartsWithSegments(_pathPrefix) || _pathPrefixIsRoot)
Microsoft.AspNetCore.TestHost.Tests (2)
WebSocketClientTests.cs (2)
27if (ctx.Request.Path.StartsWithSegments("/connect")) 65if (ctx.Request.Path.StartsWithSegments("/connect"))
OutputCachingSample (2)
Startup.cs (2)
12options.AddBasePolicy(builder => builder.With(c => c.HttpContext.Request.Path.StartsWithSegments("/js")).Expire(TimeSpan.FromDays(1))); 13options.AddBasePolicy(builder => builder.With(c => c.HttpContext.Request.Path.StartsWithSegments("/js")).NoCache());
PathSchemeSelection (1)
Startup.cs (1)
33return ctx.Request.Path.StartsWithSegments("/api") ? "Api" : null;
SignalR.Client.FunctionalTestApp (3)
Startup.cs (3)
154if (context.Request.Path.StartsWithSegments("/echoredirect")) 168if (context.Request.Path.StartsWithSegments("/redirect")) 203if (context.Request.Path.StartsWithSegments("/bad-negotiate"))
Wasm.Performance.Driver (3)
src\Components\WebAssembly\DevServer\src\Server\Startup.cs (3)
38if (ctx.Request.Path.StartsWithSegments("/_framework") && !ctx.Request.Path.StartsWithSegments("/_framework/blazor.server.js") && !ctx.Request.Path.StartsWithSegments("/_framework/blazor.web.js"))