37 references to StartsWithSegments
BasicWebSite (1)
Controllers\RazorComponentsController.cs (1)
55Request.Path = Request.Path.StartsWithSegments("/components/routable") ?
blazor-devserver (4)
Server\Startup.cs (4)
38if (ctx.Request.Path.StartsWithSegments("/_framework/blazor.boot.json")) 42else if (applyCopHeaders && 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)
784if (ctx.Request.Path.StartsWithSegments("/NullBuffer")) 795else if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetSmall")) 806else if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetLarge")) 817else if (ctx.Request.Path.StartsWithSegments("/InvalidCountSmall")) 828else if (ctx.Request.Path.StartsWithSegments("/InvalidCountLarge")) 839else if (ctx.Request.Path.StartsWithSegments("/InvalidCountWithOffset")) 858if (ctx.Request.Path.StartsWithSegments("/NullBuffer")) 862else if (ctx.Request.Path.StartsWithSegments("/NullBufferPost")) 866else if (ctx.Request.Path.StartsWithSegments("/InvalidCountZeroRead")) 870else if (ctx.Request.Path.StartsWithSegments("/InvalidCountZeroReadPost")) 882if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetSmall")) 893else if (ctx.Request.Path.StartsWithSegments("/InvalidOffsetLarge")) 904else if (ctx.Request.Path.StartsWithSegments("/InvalidCountSmall")) 915else if (ctx.Request.Path.StartsWithSegments("/InvalidCountLarge")) 926else if (ctx.Request.Path.StartsWithSegments("/InvalidCountWithOffset")) 943if (ctx.Request.Path.StartsWithSegments("/NullBuffer")) 947else 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")) 205if (context.Request.Path.StartsWithSegments("/bad-negotiate"))