2 implementations of IRouteBuilder
Microsoft.AspNetCore.Mvc.Core (1)
Builder\MvcApplicationBuilderExtensions.cs (1)
91
private sealed class EndpointRouteBuilder :
IRouteBuilder
Microsoft.AspNetCore.Routing (1)
RouteBuilder.cs (1)
14
public class RouteBuilder :
IRouteBuilder
112 references to IRouteBuilder
Microsoft.AspNetCore (2)
WebHost.cs (2)
56
public static IWebHost Start(Action<
IRouteBuilder
> routeBuilder) =>
66
public static IWebHost Start([StringSyntax(StringSyntaxAttribute.Uri)] string url, Action<
IRouteBuilder
> routeBuilder)
Microsoft.AspNetCore.Mvc.Core (19)
Builder\MvcApplicationBuilderExtensions.cs (2)
24
/// <see cref="UseMvc(IApplicationBuilder, Action{
IRouteBuilder
})"/>.</remarks>
61
Action<
IRouteBuilder
> configureRoutes)
Builder\MvcAreaRouteBuilderExtensions.cs (17)
11
/// Extension methods for <see cref="
IRouteBuilder
"/>.
16
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the given MVC area with the specified
19
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
24
public static
IRouteBuilder
MapAreaRoute(
25
this
IRouteBuilder
routeBuilder,
35
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the given MVC area with the specified
39
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
48
public static
IRouteBuilder
MapAreaRoute(
49
this
IRouteBuilder
routeBuilder,
60
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the given MVC area with the specified
64
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
77
public static
IRouteBuilder
MapAreaRoute(
78
this
IRouteBuilder
routeBuilder,
90
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the given MVC area with the specified
94
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
111
public static
IRouteBuilder
MapAreaRoute(
112
this
IRouteBuilder
routeBuilder,
Microsoft.AspNetCore.Routing (91)
Builder\RoutingBuilderExtensions.cs (3)
38
/// with the <see cref="IRouter"/> built from configured <see cref="
IRouteBuilder
"/>.
41
/// <param name="action">An <see cref="Action{IRouteBuilder}"/> to configure the provided <see cref="
IRouteBuilder
"/>.</param>
43
public static IApplicationBuilder UseRouter(this IApplicationBuilder builder, Action<
IRouteBuilder
> action)
MapRouteRouteBuilderExtensions.cs (18)
14
/// Provides extension methods for <see cref="
IRouteBuilder
"/> to add routes.
19
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the specified name and template.
21
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
26
public static
IRouteBuilder
MapRoute(
27
this
IRouteBuilder
routeBuilder,
36
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the specified name, template, and default values.
38
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
47
public static
IRouteBuilder
MapRoute(
48
this
IRouteBuilder
routeBuilder,
57
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the specified name, template, default values, and
60
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
73
public static
IRouteBuilder
MapRoute(
74
this
IRouteBuilder
routeBuilder,
84
/// Adds a route to the <see cref="
IRouteBuilder
"/> with the specified name, template, default values, and
87
/// <param name="routeBuilder">The <see cref="
IRouteBuilder
"/> to add the route to.</param>
104
public static
IRouteBuilder
MapRoute(
105
this
IRouteBuilder
routeBuilder,
114
throw new RouteCreationException(Resources.FormatDefaultHandler_MustBeSet(nameof(
IRouteBuilder
)));
RequestDelegateRouteBuilderExtensions.cs (70)
13
/// Provides extension methods for adding new handlers to a <see cref="
IRouteBuilder
"/>.
18
/// Adds a route to the <see cref="
IRouteBuilder
"/> for the given <paramref name="template"/>, and
21
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
25
public static
IRouteBuilder
MapRoute(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, RequestDelegate handler)
40
/// Adds a route to the <see cref="
IRouteBuilder
"/> for the given <paramref name="template"/>, and
43
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
47
public static
IRouteBuilder
MapMiddlewareRoute(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
55
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP DELETE requests for the given
58
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
62
public static
IRouteBuilder
MapDelete(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, RequestDelegate handler)
68
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP DELETE requests for the given
71
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
75
public static
IRouteBuilder
MapMiddlewareDelete(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
81
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP DELETE requests for the given
84
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
88
public static
IRouteBuilder
MapDelete(
89
this
IRouteBuilder
builder,
97
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP GET requests for the given
100
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
104
public static
IRouteBuilder
MapGet(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, RequestDelegate handler)
110
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP GET requests for the given
113
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
117
public static
IRouteBuilder
MapMiddlewareGet(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
123
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP GET requests for the given
126
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
130
public static
IRouteBuilder
MapGet(
131
this
IRouteBuilder
builder,
139
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP POST requests for the given
142
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
146
public static
IRouteBuilder
MapPost(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, RequestDelegate handler)
152
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP POST requests for the given
155
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
159
public static
IRouteBuilder
MapMiddlewarePost(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
165
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP POST requests for the given
168
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
172
public static
IRouteBuilder
MapPost(
173
this
IRouteBuilder
builder,
181
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP PUT requests for the given
184
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
188
public static
IRouteBuilder
MapPut(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, RequestDelegate handler)
194
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP PUT requests for the given
197
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
201
public static
IRouteBuilder
MapMiddlewarePut(this
IRouteBuilder
builder, [StringSyntax("Route")] string template, Action<IApplicationBuilder> action)
207
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP PUT requests for the given
210
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
214
public static
IRouteBuilder
MapPut(
215
this
IRouteBuilder
builder,
223
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP requests for the given
226
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
231
public static
IRouteBuilder
MapVerb(
232
this
IRouteBuilder
builder,
246
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP requests for the given
249
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
254
public static
IRouteBuilder
MapVerb(
255
this
IRouteBuilder
builder,
278
/// Adds a route to the <see cref="
IRouteBuilder
"/> that only matches HTTP requests for the given
281
/// <param name="builder">The <see cref="
IRouteBuilder
"/>.</param>
286
public static
IRouteBuilder
MapMiddlewareVerb(
287
this
IRouteBuilder
builder,
297
private static IInlineConstraintResolver GetConstraintResolver(
IRouteBuilder
builder)