IEndpointRouteBuilder 接口

定义

为应用程序中的路由生成器定义协定。 路由生成器指定应用程序的路由。

public interface class IEndpointRouteBuilder
public interface IEndpointRouteBuilder
type IEndpointRouteBuilder = interface
Public Interface IEndpointRouteBuilder
派生

属性

DataSources

获取生成器中配置的终结点数据源。

ServiceProvider

获取 IServiceProvider 用于解析路由服务的 。

方法

CreateApplicationBuilder()

创建一个新的 IApplicationBuilder

扩展方法

MapBlazorHub(IEndpointRouteBuilder)

将 Blazor Hub 映射到默认路径。

MapBlazorHub(IEndpointRouteBuilder, Action<HttpConnectionDispatcherOptions>)

将 Blazor Hub 映射到默认路径。

MapBlazorHub(IEndpointRouteBuilder, String)

将 Blazor Hub 映射到路径 path

MapBlazorHub(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

将 Blazor Hub 映射到路径 path

MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String)

将具有指定路径的传入请求映射到所提供的连接管道。

MapConnectionHandler<TConnectionHandler>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

将具有指定路径的传入请求映射到所提供的连接管道。

MapConnections(IEndpointRouteBuilder, String, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>)

将具有指定路径的传入请求映射到所提供的连接管道。

MapConnections(IEndpointRouteBuilder, String, Action<IConnectionBuilder>)

将具有指定路径的传入请求映射到所提供的连接管道。

MapAreaControllerRoute(IEndpointRouteBuilder, String, String, String, Object, Object, Object)

将控制器操作的终结点添加到 ,IEndpointRouteBuilder并指定具有给定 name、、areaNamepatterndefaultsconstraintsdataTokens的路由。

MapControllerRoute(IEndpointRouteBuilder, String, String, Object, Object, Object)

将控制器操作的终结点添加到 ,IEndpointRouteBuilder并使用给定name的 、pattern、、 defaultsconstraintsdataTokens指定路由。

MapControllers(IEndpointRouteBuilder)

在未指定任何路由的情况下, IEndpointRouteBuilder 将控制器操作的终结点添加到 。

MapDefaultControllerRoute(IEndpointRouteBuilder)

将控制器操作的终结点添加到 , IEndpointRouteBuilder 并添加默认路由 {controller=Home}/{action=Index}/{id?}

MapDynamicControllerRoute<TTransformer>(IEndpointRouteBuilder, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将尝试使用 生成的 TTransformer路由值选择控制器操作。

MapDynamicControllerRoute<TTransformer>(IEndpointRouteBuilder, String, Object)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将尝试使用 生成的 TTransformer路由值选择控制器操作。

MapDynamicControllerRoute<TTransformer>(IEndpointRouteBuilder, String, Object, Int32)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将尝试使用 生成的 TTransformer路由值选择控制器操作。

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 、 controllerarea匹配的action控制器终结点。

MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 、 controllerarea匹配的action控制器终结点。

MapFallbackToController(IEndpointRouteBuilder, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 、 和 controller匹配的action控制器终结点。

MapFallbackToController(IEndpointRouteBuilder, String, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 、 和 controller匹配的action控制器终结点。

Map(IEndpointRouteBuilder, RoutePattern, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, RoutePattern, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

Map(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP 请求匹配的 。

MapDelete(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP DELETE 请求匹配的 。

MapDelete(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP DELETE 请求匹配的 。

MapFallback(IEndpointRouteBuilder, Delegate)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。

MapFallback(IEndpointRouteBuilder, String, Delegate)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,使其与提供的模式匹配,其优先级可能最低。

MapGet(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP GET 请求匹配的 。

MapGet(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP GET 请求匹配的 。

MapGroup(IEndpointRouteBuilder, RoutePattern)

创建一个 RouteGroupBuilder ,用于定义以指定 prefix为前缀的所有终结点。

MapGroup(IEndpointRouteBuilder, String)

创建一个 RouteGroupBuilder ,用于定义以指定 prefix为前缀的所有终结点。

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定 HTTP 方法和模式的 HTTP 请求匹配的 。

MapMethods(IEndpointRouteBuilder, String, IEnumerable<String>, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定 HTTP 方法和模式的 HTTP 请求匹配的 。

MapPatch(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PATCH 请求匹配的 。

MapPatch(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PATCH 请求匹配的 。

MapPost(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP POST 请求匹配的 。

MapPost(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP POST 请求匹配的 。

MapPut(IEndpointRouteBuilder, String, RequestDelegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PUT 请求匹配的 。

MapPut(IEndpointRouteBuilder, String, Delegate)

RouteEndpoint将 添加到IEndpointRouteBuilder与指定模式的 HTTP PUT 请求匹配的 。

MapFallback(IEndpointRouteBuilder, RequestDelegate)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。

MapFallback(IEndpointRouteBuilder, String, RequestDelegate)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,使其与提供的模式匹配,其优先级可能最低。

MapHealthChecks(IEndpointRouteBuilder, String)

使用指定模板将运行状况检查终结点添加到 IEndpointRouteBuilder

MapHealthChecks(IEndpointRouteBuilder, String, HealthCheckOptions)

使用指定的模板和选项将运行状况检查终结点添加到 IEndpointRouteBuilder

MapHub<THub>(IEndpointRouteBuilder, String)

将具有指定路径的传入请求映射到指定 Hub 类型。

MapHub<THub>(IEndpointRouteBuilder, String, Action<HttpConnectionDispatcherOptions>)

将具有指定路径的传入请求映射到指定 Hub 类型。

MapRazorComponents<TRootComponent>(IEndpointRouteBuilder)

将指定 TRootComponent 中定义的页面组件映射到给定程序集,并在路由匹配时呈现 由 TRootComponent 指定的组件。

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String)

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 它将尝试使用 生成的 TTransformer路由值选择页面。

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object)

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 它将尝试使用 生成的 TTransformer路由值选择页面。

MapDynamicPageRoute<TTransformer>(IEndpointRouteBuilder, String, Object, Int32)

向 添加专用 RouteEndpoint 的 , IEndpointRouteBuilder 它将尝试使用 生成的 TTransformer路由值选择页面。

MapFallbackToAreaPage(IEndpointRouteBuilder, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 、 和 area匹配page的页面终结点。

MapFallbackToAreaPage(IEndpointRouteBuilder, String, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 、 和 area匹配page的页面终结点。

MapFallbackToPage(IEndpointRouteBuilder, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 匹配 page的页面终结点。

MapFallbackToPage(IEndpointRouteBuilder, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,它将匹配具有尽可能低优先级的非文件名的请求。 请求将路由到与 匹配 page的页面终结点。

MapRazorPages(IEndpointRouteBuilder)

将 Razor Pages 的终结点添加到 IEndpointRouteBuilder

MapFallbackToFile(IEndpointRouteBuilder, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,以匹配具有可能最低优先级的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 filePath

MapFallbackToFile(IEndpointRouteBuilder, String, StaticFileOptions)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,以匹配具有可能最低优先级的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 filePath

MapFallbackToFile(IEndpointRouteBuilder, String, String)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,以匹配具有可能最低优先级的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 filePath

MapFallbackToFile(IEndpointRouteBuilder, String, String, StaticFileOptions)

将专用 RouteEndpoint 化 添加到 IEndpointRouteBuilder ,以匹配具有可能最低优先级的非文件名的请求。 请求将路由到尝试 StaticFileMiddleware 为 指定的文件提供服务的 filePath

MapIdentityApi<TUser>(IEndpointRouteBuilder)

使用 ASP.NET Core Identity 添加用于注册、登录和注销的终结点。

MapShortCircuit(IEndpointRouteBuilder, Int32, String[])

RouteEndpointIEndpointRouteBuilder将 添加到与指定前缀) 的所有谓词 (HTTP 请求匹配的 。

适用于