2 implementations of IRouteBuilder
Microsoft.AspNetCore.Mvc.Core (1)
Builder\MvcApplicationBuilderExtensions.cs (1)
91private sealed class EndpointRouteBuilder : IRouteBuilder
Microsoft.AspNetCore.Routing (1)
RouteBuilder.cs (1)
14public class RouteBuilder : IRouteBuilder
151 references to IRouteBuilder
Microsoft.AspNetCore (2)
WebHost.cs (2)
54public static IWebHost Start(Action<IRouteBuilder> routeBuilder) => 64public 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> 61Action<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> 24public static IRouteBuilder MapAreaRoute( 25this 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> 48public static IRouteBuilder MapAreaRoute( 49this 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> 77public static IRouteBuilder MapAreaRoute( 78this 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> 111public static IRouteBuilder MapAreaRoute( 112this IRouteBuilder routeBuilder,
Microsoft.AspNetCore.Mvc.Core.Test (11)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (8)
18var builder = CreateRouteBuilder(); 49var builder = CreateRouteBuilder(); 89var builder = CreateRouteBuilder(); 135var builder = CreateRouteBuilder(); 188var builder = CreateRouteBuilder(); 231var builder = CreateRouteBuilder(); 277private IRouteBuilder CreateRouteBuilder() 279var builder = new Mock<IRouteBuilder>();
Routing\UrlHelperTest.cs (3)
71var routeBuilder = CreateRouteBuilder(services); 93var routeBuilder = CreateRouteBuilder(services); 125private static IRouteBuilder CreateRouteBuilder(IServiceProvider services)
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> 43public 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> 26public static IRouteBuilder MapRoute( 27this 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> 47public static IRouteBuilder MapRoute( 48this 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> 73public static IRouteBuilder MapRoute( 74this 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> 104public static IRouteBuilder MapRoute( 105this IRouteBuilder routeBuilder, 114throw 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> 25public 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> 47public 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> 62public 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> 75public 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> 88public static IRouteBuilder MapDelete( 89this 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> 104public 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> 117public 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> 130public static IRouteBuilder MapGet( 131this 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> 146public 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> 159public 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> 172public static IRouteBuilder MapPost( 173this 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> 188public 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> 201public 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> 214public static IRouteBuilder MapPut( 215this 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> 231public static IRouteBuilder MapVerb( 232this 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> 254public static IRouteBuilder MapVerb( 255this 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> 286public static IRouteBuilder MapMiddlewareVerb( 287this IRouteBuilder builder, 297private static IInlineConstraintResolver GetConstraintResolver(IRouteBuilder builder)
Microsoft.AspNetCore.Routing.FunctionalTests (3)
WebHostBuilderExtensionsTest.cs (3)
17public static TheoryData<Action<IRouteBuilder>, HttpRequestMessage, string> MatchesRequest 21return new TheoryData<Action<IRouteBuilder>, HttpRequestMessage, string>() 76public async Task UseRouter_MapGet_MatchesRequest(Action<IRouteBuilder> routeBuilder, HttpRequestMessage request, string expected)
Microsoft.AspNetCore.Routing.Tests (25)
RequestDelegateRouteBuilderExtensionsTest.cs (9)
17public static TheoryData<Action<IRouteBuilder>, Action<HttpContext>> MatchingActions 21return new TheoryData<Action<IRouteBuilder>, Action<HttpContext>>() 44Action<IRouteBuilder> routeSetup, 54var builder = CreateRouteBuilder(services); 65public static TheoryData<Action<IRouteBuilder>, Action<HttpContext>> NonmatchingActions 69return new TheoryData<Action<IRouteBuilder>, Action<HttpContext>>() 102Action<IRouteBuilder> routeSetup, 112var builder = CreateRouteBuilder(services); 139private static IRouteBuilder CreateRouteBuilder(IServiceProvider services)
RouteTest.cs (10)
1566var routeBuilder = CreateRouteBuilder(); 1590var routeBuilder = CreateRouteBuilder(); 1606var routeBuilder = CreateRouteBuilder(); 1630var routeBuilder = CreateRouteBuilder(); 1651var routeBuilder = CreateRouteBuilder(); 1672var routeBuilder = CreateRouteBuilder(); 1690var routeBuilder = CreateRouteBuilder(); 1705var routeBuilder = CreateRouteBuilder(); 1729var builder = CreateRouteBuilder(); 1758private static IRouteBuilder CreateRouteBuilder()
TemplateParserDefaultValuesTests.cs (6)
21var routeBuilder = CreateRouteBuilder(); 40var routeBuilder = CreateRouteBuilder(); 57var routeBuilder = CreateRouteBuilder(); 82var routeBuilder = CreateRouteBuilder(); 105var routeBuilder = CreateRouteBuilder(); 126private static IRouteBuilder CreateRouteBuilder()