1 instantiation of RouteGroupBuilder
Microsoft.AspNetCore.Routing (1)
Builder\EndpointRouteBuilderExtensions.cs (1)
54
return
new
(endpoints, prefix);
68 references to RouteGroupBuilder
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
34
var
group = endpoints
CatalogService (2)
CatalogApi.cs (2)
7
public static
RouteGroupBuilder
MapCatalogApi(this IEndpointRouteBuilder routes)
9
var
group = routes.MapGroup("/api/v1/catalog");
Keycloak.Web (1)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
11
var
group = endpoints.MapGroup("authentication");
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (2)
177
var
group = endpointBuilder.MapGroup("/group");
203
var
group = endpointBuilder.MapGroup("/group");
Microsoft.AspNetCore.Identity (3)
IdentityApiEndpointRouteBuilderExtensions.cs (3)
53
var
routeGroup = endpoints.MapGroup("");
258
var
accountGroup = routeGroup.MapGroup("/manage").RequireAuthorization();
468
private sealed class IdentityEndpointsConventionBuilder(
RouteGroupBuilder
inner) : IEndpointConventionBuilder
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1303
var
authGroup = app.MapGroup("/auth").RequireAuthorization();
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
158
var
group = endpointBuilder.MapGroup("/group");
184
var
group = endpointBuilder.MapGroup("/group");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
213
var
group = endpointBuilder.MapGroup("/group");
248
var
group = endpointBuilder.MapGroup("/group");
Microsoft.AspNetCore.OpenApi.Tests (5)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (5)
102
var
myGroup = builder.MapGroup("/group");
131
var
myGroup = builder.MapGroup("/group");
163
var
myGroup = builder.MapGroup("/group");
204
var
outerGroup = builder.MapGroup("/outer");
205
var
innerGroup = outerGroup.MapGroup("/inner");
Microsoft.AspNetCore.Routing (14)
Builder\EndpointFilterExtensions.cs (3)
79
public static
RouteGroupBuilder
AddEndpointFilter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFilterType>(this
RouteGroupBuilder
builder)
83
return builder.AddEndpointFilter<
RouteGroupBuilder
, TFilterType>();
Builder\EndpointRouteBuilderExtensions.cs (6)
29
/// Creates a <see cref="
RouteGroupBuilder
"/> for defining endpoints all prefixed with the specified <paramref name="prefix"/>.
34
/// A <see cref="
RouteGroupBuilder
"/> that is both an <see cref="IEndpointRouteBuilder"/> and an <see cref="IEndpointConventionBuilder"/>.
37
public static
RouteGroupBuilder
MapGroup(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string prefix) =>
41
/// Creates a <see cref="
RouteGroupBuilder
"/> for defining endpoints all prefixed with the specified <paramref name="prefix"/>.
46
/// A <see cref="
RouteGroupBuilder
"/> that is both an <see cref="IEndpointRouteBuilder"/> and an <see cref="IEndpointConventionBuilder"/>.
49
public static
RouteGroupBuilder
MapGroup(this IEndpointRouteBuilder endpoints, RoutePattern prefix)
RouteGroupBuilder.cs (2)
42
private readonly
RouteGroupBuilder
_routeGroupBuilder;
45
public GroupEndpointDataSource(
RouteGroupBuilder
groupRouteBuilder)
RouteGroupContext.cs (2)
22
/// Gets all conventions added to ancestor <see cref="
RouteGroupBuilder
"/> instances returned from <see cref="EndpointRouteBuilderExtensions.MapGroup(IEndpointRouteBuilder, RoutePattern)"/>
29
/// Gets all conventions added to ancestor <see cref="
RouteGroupBuilder
"/> instances returned from <see cref="EndpointRouteBuilderExtensions.MapGroup(IEndpointRouteBuilder, RoutePattern)"/>
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
25
var
group = builder.MapGroup("");
Microsoft.AspNetCore.Routing.FunctionalTests (4)
MinimalFormTests.cs (3)
306
var
group = b.MapGroup("/todo").DisableAntiforgery();
564
var
g = b.MapGroup("/todos").WithFormMappingOptions(maxCollectionSize: 2);
616
var
g = b.MapGroup("/todos").WithFormOptions(valueCountLimit: 7);
RouteHandlerTest.cs (1)
79
var
group = b.MapGroup("");
Microsoft.AspNetCore.Routing.Tests (19)
Builder\GroupTest.cs (14)
26
var
group = builder.MapGroup("");
57
var
group = builder.MapGroup("/{org}");
91
var
group = builder.MapGroup("/{org}").MapGroup("/{id}");
156
var
outer = builder.MapGroup("/outer");
157
var
inner = outer.MapGroup("/inner");
185
var
group = builder.MapGroup("/group");
206
var
group = builder.MapGroup("/group");
241
var
group = builder.MapGroup("/group");
261
var
group = builder.MapGroup("/group");
305
var
group = builder.MapGroup("/group");
321
var
outer = builder.MapGroup("/outer");
322
var
inner = outer.MapGroup("/inner");
339
var
group = builder.MapGroup("/group");
367
var
group = builder.MapGroup("/group");
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (5)
938
var
outerGroup = builder.MapGroup("/outer");
942
var
innerGroup = outerGroup.MapGroup("/inner");
1018
var
group = builder.MapGroup("/group");
1040
var
outerGroup = builder.MapGroup("/group");
1041
var
innerGroup = outerGroup.MapGroup("/");
MinimalSample (3)
Program.cs (3)
23
var
outer = app.MapGroup("/outer");
24
var
inner = outer.MapGroup("/inner");
55
var
superNested = inner.MapGroup("/group/{groupName}")
Mvc.RoutingWebSite (2)
StartupForGroups.cs (2)
28
var
pagesGroup = endpoints.MapGroup("/pages");
31
var
controllerGroup = endpoints.MapGroup("/controllers/{org}");
MvcSandbox (1)
Startup.cs (1)
38
var
group = builder.MapGroup("/group");
OutputCachingSample (1)
Startup.cs (1)
32
var
blog = app.MapGroup("blog").CacheOutput(x => x.Tag("blog"));
Sample (5)
Program.cs (5)
46
var
forms = app.MapGroup("forms")
49
var
schemas = app.MapGroup("schemas-by-ref")
70
var
v1 = app.MapGroup("v1")
72
var
v2 = app.MapGroup("v2")
74
var
responses = app.MapGroup("responses")